SlideShare a Scribd company logo
About the Presentations The presentations cover the objectives found in the opening of each chapter All chapter objectives are listed in the beginning of each presentation You may customize the presentations to fit your class needs Some figures from the chapters are included; a complete set of images from the book can be found on the Instructor Resources disc A Guide to SQL, Eighth Edition
A Guide to SQL, Eighth Edition Chapter One Introduction to Premiere Products, Henry Books, and Alexamara Marina Group A Guide to SQL, Eighth Edition
Objectives Introduce Premiere Products, a company whose database is used as the basis for many of the examples throughout the text Introduce Henry Books, a company whose database is used as a case that runs throughout the text Introduce Alexamara Marina Group, a company whose database is used as an additional case that runs throughout the text A Guide to SQL, Eighth Edition
What is a Database? Database : a structure containing categories of information and relationships between these categories Categories: sales reps, customers, orders, and parts Relationships between categories: sales rep-to-customer and customer-to-orders A Guide to SQL, Eighth Edition
The Premiere Products Database Premiere Products is a distributor of appliances, housewares, and sporting goods Manual system no longer feasible for managing customer, order, and inventory data Database management system will allow for current, accurate data with useful reports A Guide to SQL, Eighth Edition
Required Data for Sales Reps Number Last name First name Address Total commission Commission rate A Guide to SQL, Eighth Edition
Required Data for Customer Customer number Name Address Current balance Credit limit  Sales rep number A Guide to SQL, Eighth Edition
Required Data for Parts Part number Description Number of units on hand Item class Number of the warehouse where the item is stored Unit price for each part in inventory A Guide to SQL, Eighth Edition
A Guide to SQL, Eighth Edition
Components of a Sample Order Heading (top of the order form) Order number and date Customer number, name, address Sales rep number and name Body (center of the order form) One or more order lines or line items Footer (bottom of the order form) Order total A Guide to SQL, Eighth Edition
Components of a Line Item Part number Part description Number of units for the part ordered Quoted price for the part Total, or extension, the result of multiplying the number ordered by the quoted price A Guide to SQL, Eighth Edition
Items Stored for Each Order Order number Date of the order Customer number Customer name, address, and sales rep information are stored with the customer information Sales rep name is stored with sales rep information A Guide to SQL, Eighth Edition
Items Stored for Each Order (continued) Order number, part number, number of units ordered Quoted price Part description is stored with information on parts Order total is not stored but is calculated each time order is displayed or printed A Guide to SQL, Eighth Edition
Sample Rep Table A Guide to SQL, Eighth Edition
Rep Table Example Three sales reps in the table identified by number Sales rep number: 20 Name: Valerie Kaiser Address: 624 Randall, Grove, FL, 33321 Total commission: $20,542.50 Commission rate: 5% (0.05) A Guide to SQL, Eighth Edition
Sample Customer Table A Guide to SQL, Eighth Edition
Customer Table Example Ten customers are identified by number Number: 148 Name: Al’s Appliance and Sport Address: 2837 Greenway, Fillmore, FL, 33336 Current balance: $6,550.00 Credit limit: $7,500.00 Sales rep: 20 (Valerie Kaiser) A Guide to SQL, Eighth Edition
Sample Part Table A Guide to SQL, Eighth Edition
Part Table Example Ten parts are listed by part number Part number: AT94 Description: Iron Units on hand: 50 Item class: HW (housewares) Warehouse: 3 Price: $24.95 A Guide to SQL, Eighth Edition
Sample Orders Table A Guide to SQL, Eighth Edition
Orders Table Example Seven orders listed by order number Order number: 21608 Order date: 10/20/2010 Customer: 148 (Al’s Appliance and Sport) A Guide to SQL, Eighth Edition
Sample Order_Line Table A Guide to SQL, Eighth Edition
Order_Line Table Example Nine order line items listed by order number Order number: 21608 Part number: AT94 (iron) Number ordered: 11 Quoted price: $21.95 A Guide to SQL, Eighth Edition
Alternative Orders Table Structure A Guide to SQL, Eighth Edition
Alternative Order Table Example Displays identical data in one table Each table row contains all of the order lines for each order Fifth row, order 21617 has two order lines Part BV06, Qty 2, Quoted price $794.95 each Part CD52, Qty 4, Quoted price $150.00 each A Guide to SQL, Eighth Edition
Issues with Alternative Order Table Difficult to track information between columns Other issues How much room is allowed for multiple entries? What if an order has more order lines than you have allowed room for? For a given part, how do you determine which orders contain order lines for that part? A Guide to SQL, Eighth Edition
Benefits of Order_Line Table Table is less complicated when separated No multiple entries Number of order lines is not limited Finding every order for a given part is simple A Guide to SQL, Eighth Edition
Henry Books Database Ray Henry owns Henry Books, a bookstore chain Data is to be stored in a database Needs forms and reports to work with the data Gathers a variety of information on branches, publishers, authors, and books A Guide to SQL, Eighth Edition
Data for Branch Table Number Name Location Number of employees A Guide to SQL, Eighth Edition
Sample Branch Table A Guide to SQL, Eighth Edition
Data for Publisher Table Publisher Code Name City A Guide to SQL, Eighth Edition
Sample Publisher Table A Guide to SQL, Eighth Edition
Data for Author Table Author number Last name First name A Guide to SQL, Eighth Edition
Sample Author Table A Guide to SQL, Eighth Edition
Data for Book Table Book code Title Publisher Type of book Price Is it a paperback? A Guide to SQL, Eighth Edition
Sample Book Table A Guide to SQL, Eighth Edition
Data for Wrote Table This table relates books and authors Book code Author number Sequence, for books with multiple authors A Guide to SQL, Eighth Edition
Data for Inventory Table This table indicates the number of copies currently on hand at a particular branch Book code Branch number On hand quantity A Guide to SQL, Eighth Edition
Sample Wrote and Inventory Tables A Guide to SQL, Eighth Edition Wrote table Inventory table
Alexamara Marina Database Alexamara Marina Group offers in-water storage to boat owners Has two properties Also provides boat repair and maintenance services Uses database to store information for managing operations A Guide to SQL, Eighth Edition
Data for Marina Table Marina number Name Street Address City, State, and Zip A Guide to SQL, Eighth Edition
Data for Owner Table Owner number Last and First names Street Address City, State, and Zip A Guide to SQL, Eighth Edition
Sample Marina and Owner Tables A Guide to SQL, Eighth Edition
Data for Marina_Slip Table Slip ID, Marina Number, Slip Number Length Rental fee Boat name and Boat type Owner number A Guide to SQL, Eighth Edition
Sample Marina_Slip Table A Guide to SQL, Eighth Edition
Service Data Maintenance service category information is stored in the SERVICE_CATEGORY table Information on the services requested is stored in the SERVICE_REQUEST table Stores service category, slip information, description and status, estimated hours, hours spent, and next service date A Guide to SQL, Eighth Edition
Sample Service_Category Table A Guide to SQL, Eighth Edition
Sample Service_Request Table A Guide to SQL, Eighth Edition
Summary Premiere Products Requires rep, customer, parts, orders, and order lines Henry Books Requires branch, publisher, author, book,  and inventory Alexamara Marina Group Requires marina, owners, slips, service categories, and service requests A Guide to SQL, Eighth Edition

More Related Content

PDF
Resesarch paper format
PDF
Create a table access - office
PPT
Database Fundamentals
PPT
0104 abap dictionary
PPTX
18 database features
PPTX
Mla part i
PDF
Multidimensional Data Analysis with Ruby (sample)
Resesarch paper format
Create a table access - office
Database Fundamentals
0104 abap dictionary
18 database features
Mla part i
Multidimensional Data Analysis with Ruby (sample)

What's hot (10)

PPTX
Datatypes, Field Properties, Validation and Masking
PPTX
Fuel Good 2018: Jet Reports Pre-Conference Training
PPTX
Revised 2016 New Rules University Guidelines Manual Format Rules Chapters and...
PPTX
Revised 2016 new rules art, music, theatre arts powerpoint for electronic sub...
PPTX
2017 version of new rules powerpoint for submission and essential rules
PPT
Data Types And Field Properties
PPTX
Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
DOCX
PDF
Elosimple excel inventory
Datatypes, Field Properties, Validation and Masking
Fuel Good 2018: Jet Reports Pre-Conference Training
Revised 2016 New Rules University Guidelines Manual Format Rules Chapters and...
Revised 2016 new rules art, music, theatre arts powerpoint for electronic sub...
2017 version of new rules powerpoint for submission and essential rules
Data Types And Field Properties
Dealing With the Demand: Handling the Problems of Demand-Driven Acquisitions
Elosimple excel inventory
Ad

Viewers also liked (6)

PPT
Sql server kpi
PPTX
Sql Server Management Studio Tips and Tricks
PPTX
SSDT Workshop @ SQL Bits X (2012-03-29)
PPT
Types Of Join In Sql Server - Join With Example In Sql Server
PDF
Remote DBA Experts SQL Server 2008 New Features
PDF
Bn 1019 demo sql server 2012
Sql server kpi
Sql Server Management Studio Tips and Tricks
SSDT Workshop @ SQL Bits X (2012-03-29)
Types Of Join In Sql Server - Join With Example In Sql Server
Remote DBA Experts SQL Server 2008 New Features
Bn 1019 demo sql server 2012
Ad

Similar to Sql ppt ch01 (20)

PPT
Introduction to structured query language (sql)
PDF
10g sql e book
PPTX
Practical guide to SQL basics
PDF
Joe Celko s SQL for Smarties Advanced SQL Programming Third Edition Joe Celko
PDF
Database concepts 8th Edition David M. Kroenke
PDF
Oracle Sql Developer 21 Database Design And Development Using This Featureric...
PDF
(Original PDF) Database Concepts 8th Edition by David M. Kroenke
PDF
Database concepts 8th Edition David M. Kroenke
PPT
Modern database management jeffrey a. hoffer, mary b. prescott,
PPTX
DATABASE MANAGEMENT
PDF
A Practical Guide to Database Design.pdf
PPT
Chapter10
DOCX
FUNDAMENTALSOF DATABASEMANAGEMENTSYSTEMSSe
PDF
_Learning SQL_ by Alan Beaulieu.pdf
PPT
chap 7.ppt(sql).ppt
PDF
[Oracle数据库11 g初学者指南].oracle.database.11g,.a.beginner's.guide
PPT
Ch 1 D B Environment
PPT
Project seminar
PDF
Sql a practical introduction
Introduction to structured query language (sql)
10g sql e book
Practical guide to SQL basics
Joe Celko s SQL for Smarties Advanced SQL Programming Third Edition Joe Celko
Database concepts 8th Edition David M. Kroenke
Oracle Sql Developer 21 Database Design And Development Using This Featureric...
(Original PDF) Database Concepts 8th Edition by David M. Kroenke
Database concepts 8th Edition David M. Kroenke
Modern database management jeffrey a. hoffer, mary b. prescott,
DATABASE MANAGEMENT
A Practical Guide to Database Design.pdf
Chapter10
FUNDAMENTALSOF DATABASEMANAGEMENTSYSTEMSSe
_Learning SQL_ by Alan Beaulieu.pdf
chap 7.ppt(sql).ppt
[Oracle数据库11 g初学者指南].oracle.database.11g,.a.beginner's.guide
Ch 1 D B Environment
Project seminar
Sql a practical introduction

Recently uploaded (20)

PPTX
1. Introduction to Computer Programming.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mushroom cultivation and it's methods.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Machine learning based COVID-19 study performance prediction
1. Introduction to Computer Programming.pptx
Spectral efficient network and resource selection model in 5G networks
A comparative study of natural language inference in Swahili using monolingua...
Building Integrated photovoltaic BIPV_UPV.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mushroom cultivation and it's methods.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Digital-Transformation-Roadmap-for-Companies.pptx
Getting Started with Data Integration: FME Form 101
Network Security Unit 5.pdf for BCA BBA.
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
A comparative analysis of optical character recognition models for extracting...
Spectroscopy.pptx food analysis technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Heart disease approach using modified random forest and particle swarm optimi...
Empathic Computing: Creating Shared Understanding
Machine learning based COVID-19 study performance prediction

Sql ppt ch01

  • 1. About the Presentations The presentations cover the objectives found in the opening of each chapter All chapter objectives are listed in the beginning of each presentation You may customize the presentations to fit your class needs Some figures from the chapters are included; a complete set of images from the book can be found on the Instructor Resources disc A Guide to SQL, Eighth Edition
  • 2. A Guide to SQL, Eighth Edition Chapter One Introduction to Premiere Products, Henry Books, and Alexamara Marina Group A Guide to SQL, Eighth Edition
  • 3. Objectives Introduce Premiere Products, a company whose database is used as the basis for many of the examples throughout the text Introduce Henry Books, a company whose database is used as a case that runs throughout the text Introduce Alexamara Marina Group, a company whose database is used as an additional case that runs throughout the text A Guide to SQL, Eighth Edition
  • 4. What is a Database? Database : a structure containing categories of information and relationships between these categories Categories: sales reps, customers, orders, and parts Relationships between categories: sales rep-to-customer and customer-to-orders A Guide to SQL, Eighth Edition
  • 5. The Premiere Products Database Premiere Products is a distributor of appliances, housewares, and sporting goods Manual system no longer feasible for managing customer, order, and inventory data Database management system will allow for current, accurate data with useful reports A Guide to SQL, Eighth Edition
  • 6. Required Data for Sales Reps Number Last name First name Address Total commission Commission rate A Guide to SQL, Eighth Edition
  • 7. Required Data for Customer Customer number Name Address Current balance Credit limit Sales rep number A Guide to SQL, Eighth Edition
  • 8. Required Data for Parts Part number Description Number of units on hand Item class Number of the warehouse where the item is stored Unit price for each part in inventory A Guide to SQL, Eighth Edition
  • 9. A Guide to SQL, Eighth Edition
  • 10. Components of a Sample Order Heading (top of the order form) Order number and date Customer number, name, address Sales rep number and name Body (center of the order form) One or more order lines or line items Footer (bottom of the order form) Order total A Guide to SQL, Eighth Edition
  • 11. Components of a Line Item Part number Part description Number of units for the part ordered Quoted price for the part Total, or extension, the result of multiplying the number ordered by the quoted price A Guide to SQL, Eighth Edition
  • 12. Items Stored for Each Order Order number Date of the order Customer number Customer name, address, and sales rep information are stored with the customer information Sales rep name is stored with sales rep information A Guide to SQL, Eighth Edition
  • 13. Items Stored for Each Order (continued) Order number, part number, number of units ordered Quoted price Part description is stored with information on parts Order total is not stored but is calculated each time order is displayed or printed A Guide to SQL, Eighth Edition
  • 14. Sample Rep Table A Guide to SQL, Eighth Edition
  • 15. Rep Table Example Three sales reps in the table identified by number Sales rep number: 20 Name: Valerie Kaiser Address: 624 Randall, Grove, FL, 33321 Total commission: $20,542.50 Commission rate: 5% (0.05) A Guide to SQL, Eighth Edition
  • 16. Sample Customer Table A Guide to SQL, Eighth Edition
  • 17. Customer Table Example Ten customers are identified by number Number: 148 Name: Al’s Appliance and Sport Address: 2837 Greenway, Fillmore, FL, 33336 Current balance: $6,550.00 Credit limit: $7,500.00 Sales rep: 20 (Valerie Kaiser) A Guide to SQL, Eighth Edition
  • 18. Sample Part Table A Guide to SQL, Eighth Edition
  • 19. Part Table Example Ten parts are listed by part number Part number: AT94 Description: Iron Units on hand: 50 Item class: HW (housewares) Warehouse: 3 Price: $24.95 A Guide to SQL, Eighth Edition
  • 20. Sample Orders Table A Guide to SQL, Eighth Edition
  • 21. Orders Table Example Seven orders listed by order number Order number: 21608 Order date: 10/20/2010 Customer: 148 (Al’s Appliance and Sport) A Guide to SQL, Eighth Edition
  • 22. Sample Order_Line Table A Guide to SQL, Eighth Edition
  • 23. Order_Line Table Example Nine order line items listed by order number Order number: 21608 Part number: AT94 (iron) Number ordered: 11 Quoted price: $21.95 A Guide to SQL, Eighth Edition
  • 24. Alternative Orders Table Structure A Guide to SQL, Eighth Edition
  • 25. Alternative Order Table Example Displays identical data in one table Each table row contains all of the order lines for each order Fifth row, order 21617 has two order lines Part BV06, Qty 2, Quoted price $794.95 each Part CD52, Qty 4, Quoted price $150.00 each A Guide to SQL, Eighth Edition
  • 26. Issues with Alternative Order Table Difficult to track information between columns Other issues How much room is allowed for multiple entries? What if an order has more order lines than you have allowed room for? For a given part, how do you determine which orders contain order lines for that part? A Guide to SQL, Eighth Edition
  • 27. Benefits of Order_Line Table Table is less complicated when separated No multiple entries Number of order lines is not limited Finding every order for a given part is simple A Guide to SQL, Eighth Edition
  • 28. Henry Books Database Ray Henry owns Henry Books, a bookstore chain Data is to be stored in a database Needs forms and reports to work with the data Gathers a variety of information on branches, publishers, authors, and books A Guide to SQL, Eighth Edition
  • 29. Data for Branch Table Number Name Location Number of employees A Guide to SQL, Eighth Edition
  • 30. Sample Branch Table A Guide to SQL, Eighth Edition
  • 31. Data for Publisher Table Publisher Code Name City A Guide to SQL, Eighth Edition
  • 32. Sample Publisher Table A Guide to SQL, Eighth Edition
  • 33. Data for Author Table Author number Last name First name A Guide to SQL, Eighth Edition
  • 34. Sample Author Table A Guide to SQL, Eighth Edition
  • 35. Data for Book Table Book code Title Publisher Type of book Price Is it a paperback? A Guide to SQL, Eighth Edition
  • 36. Sample Book Table A Guide to SQL, Eighth Edition
  • 37. Data for Wrote Table This table relates books and authors Book code Author number Sequence, for books with multiple authors A Guide to SQL, Eighth Edition
  • 38. Data for Inventory Table This table indicates the number of copies currently on hand at a particular branch Book code Branch number On hand quantity A Guide to SQL, Eighth Edition
  • 39. Sample Wrote and Inventory Tables A Guide to SQL, Eighth Edition Wrote table Inventory table
  • 40. Alexamara Marina Database Alexamara Marina Group offers in-water storage to boat owners Has two properties Also provides boat repair and maintenance services Uses database to store information for managing operations A Guide to SQL, Eighth Edition
  • 41. Data for Marina Table Marina number Name Street Address City, State, and Zip A Guide to SQL, Eighth Edition
  • 42. Data for Owner Table Owner number Last and First names Street Address City, State, and Zip A Guide to SQL, Eighth Edition
  • 43. Sample Marina and Owner Tables A Guide to SQL, Eighth Edition
  • 44. Data for Marina_Slip Table Slip ID, Marina Number, Slip Number Length Rental fee Boat name and Boat type Owner number A Guide to SQL, Eighth Edition
  • 45. Sample Marina_Slip Table A Guide to SQL, Eighth Edition
  • 46. Service Data Maintenance service category information is stored in the SERVICE_CATEGORY table Information on the services requested is stored in the SERVICE_REQUEST table Stores service category, slip information, description and status, estimated hours, hours spent, and next service date A Guide to SQL, Eighth Edition
  • 47. Sample Service_Category Table A Guide to SQL, Eighth Edition
  • 48. Sample Service_Request Table A Guide to SQL, Eighth Edition
  • 49. Summary Premiere Products Requires rep, customer, parts, orders, and order lines Henry Books Requires branch, publisher, author, book, and inventory Alexamara Marina Group Requires marina, owners, slips, service categories, and service requests A Guide to SQL, Eighth Edition