SlideShare uma empresa Scribd logo
1 de 9
Thinking about Database Design Lesson Three  (ACCESS 2007)
The first step in creating a database is to think about why you need it -- what is its purpose? Once you know that, you can begin designing your own database. Ask yourself questions like: What kinds of information will it store? How will I have to break that information down, so it can be stored in my database? How will I use the data once it's in there?

This lesson will walk you through the steps of database design, using a bookstore scenario. You will determine the purpose of the database, and plan the tables and fields you will need for a very simple bookstore database. 2 Guevarra Institute of Technology
The Ready-2-Read Bookstore Scenario The best way to learn about designing a database is to jump right into the process. Let's pretend we work for the Ready-2-Read bookstore and we need to build a database for the store to use. Let's think about what we might need the database to do for us. The following diagram shows that we have customers, and we sell books via orders, both in the store and online. The store needs a way to keep track of these thin 3 Guevarra Institute of Technology
Determine the Purpose of the Database The first step of designing a database is to determine the purpose of the database. What do we need it to do? At Ready-2-Read, our customers will place orders for books. At the very least, we will want our database to track the books we sell, the customers we sell them to, and the date of each of the orders. The database will also be able to tell us where our customers live when we need to send them books or coupons. Additionally, we can use it to track our sales or to make a bestseller list to post in the store. 4 Guevarra Institute of Technology
Plan Database Tables Once you have established the purpose, you can begin brainstorming about how to break the information up into the tables that your database will need to store the data. Recall that a table is a collection of records and each record is broken up into the smallest pieces of needed information, called fields. Since we are planning a database to track our customers, the books we have, and the orders our customers place, we will need a table for each one of these. TIP: Keep your database usable to others by giving your tables simple, easy to understand names. 5 Guevarra Institute of Technology
Plan Table Fields Once you know what tables you need, the next step is deciding what fields belong in each table. Remember that fields are the smallest chunk of information in any record. Let's look at our Ready-2-Read bookstore example again. There will be several fields in our Customers table. We'll obviously want their first name and last name. We'll also need an address if we need to send the customer his order. Email will be necessary if we need to contact the customer when there is an issue with their order. 6 Guevarra Institute of Technology
We will also need several fields in the Books table. Title and Author make sense for books. We'll need a Price for each book. Category will help us know what type of books sell the best, so we can order more books that fit into that category. 7 Guevarra Institute of Technology
The Orders table will have fewer fields. We'll need this table to track the Customer who is placing the order, the Book the customer is ordering, and the Date the order is placed.  Don't worry if your plan doesn't include every possible field you may need. Access lets you add fields to tables any time you think you need another one! 8 Guevarra Institute of Technology
Challenge Imagine you want to use a database at your new coffee shop. Plan your database: What would you want to track with your database? What database tables would you need? What fields will be in each database table? 


 9 Guevarra Institute of Technology

Mais conteúdo relacionado

Mais de guevarra_2000

Personnel administration
Personnel administrationPersonnel administration
Personnel administration
guevarra_2000
 
Filipino values and culture
Filipino values and cultureFilipino values and culture
Filipino values and culture
guevarra_2000
 
Format for the action research project
Format for the action research projectFormat for the action research project
Format for the action research project
guevarra_2000
 
Action research format
Action research formatAction research format
Action research format
guevarra_2000
 
Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9
guevarra_2000
 
Filipino culture report
Filipino culture reportFilipino culture report
Filipino culture report
guevarra_2000
 
Personnel administration report
Personnel administration reportPersonnel administration report
Personnel administration report
guevarra_2000
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
guevarra_2000
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
guevarra_2000
 
Principles of getting job done
Principles of getting job donePrinciples of getting job done
Principles of getting job done
guevarra_2000
 
Leading different personalities
Leading different personalitiesLeading different personalities
Leading different personalities
guevarra_2000
 
Guevarra institute of technology
Guevarra institute of technologyGuevarra institute of technology
Guevarra institute of technology
guevarra_2000
 
Walk and rock music 1st quarter sales (1) sheet2
Walk and rock music 1st quarter sales (1) sheet2Walk and rock music 1st quarter sales (1) sheet2
Walk and rock music 1st quarter sales (1) sheet2
guevarra_2000
 

Mais de guevarra_2000 (20)

Personnel admin
Personnel adminPersonnel admin
Personnel admin
 
Personnel administration
Personnel administrationPersonnel administration
Personnel administration
 
Supervisor's role
Supervisor's roleSupervisor's role
Supervisor's role
 
Filipino values and culture
Filipino values and cultureFilipino values and culture
Filipino values and culture
 
Format for the action research project
Format for the action research projectFormat for the action research project
Format for the action research project
 
Course outline
Course outlineCourse outline
Course outline
 
Course outline
Course outlineCourse outline
Course outline
 
Action research format
Action research formatAction research format
Action research format
 
Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9Recruitmentcompatible 1222798911739370-9
Recruitmentcompatible 1222798911739370-9
 
Filipino culture report
Filipino culture reportFilipino culture report
Filipino culture report
 
Personnel administration report
Personnel administration reportPersonnel administration report
Personnel administration report
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
 
Leader&cultural diversity
Leader&cultural diversityLeader&cultural diversity
Leader&cultural diversity
 
Edleadership
EdleadershipEdleadership
Edleadership
 
Principles of getting job done
Principles of getting job donePrinciples of getting job done
Principles of getting job done
 
Leading different personalities
Leading different personalitiesLeading different personalities
Leading different personalities
 
Success2012
Success2012Success2012
Success2012
 
Tipsto happines
Tipsto happinesTipsto happines
Tipsto happines
 
Guevarra institute of technology
Guevarra institute of technologyGuevarra institute of technology
Guevarra institute of technology
 
Walk and rock music 1st quarter sales (1) sheet2
Walk and rock music 1st quarter sales (1) sheet2Walk and rock music 1st quarter sales (1) sheet2
Walk and rock music 1st quarter sales (1) sheet2
 

Último

Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl GoaRussian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
sexy call girls service in goa
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
russian goa call girl and escorts service
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Goa Call "Girls Service 9316020077 Call "Girls in Goa
Goa Call "Girls  Service   9316020077 Call "Girls in GoaGoa Call "Girls  Service   9316020077 Call "Girls in Goa
Goa Call "Girls Service 9316020077 Call "Girls in Goa
sexy call girls service in goa
 
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort GoaDesi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
russian goa call girl and escorts service
 

Último (20)

2k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 92055419142k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 9205541914
 
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl GoaRussian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
 
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Hatiara Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
Book Sex Workers Available Kolkata Call Girls Service Airport Kolkata ✔ 62971...
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
 
Goa Call "Girls Service 9316020077 Call "Girls in Goa
Goa Call "Girls  Service   9316020077 Call "Girls in GoaGoa Call "Girls  Service   9316020077 Call "Girls in Goa
Goa Call "Girls Service 9316020077 Call "Girls in Goa
 
Call Girl Service Belur - 7001035870 with real photos and phone numbers
Call Girl Service Belur - 7001035870 with real photos and phone numbersCall Girl Service Belur - 7001035870 with real photos and phone numbers
Call Girl Service Belur - 7001035870 with real photos and phone numbers
 
👙 Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
 
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort GoaDesi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
 
👙 Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
 

Lesson Three Thinkingabout Database Design

  • 1. Thinking about Database Design Lesson Three (ACCESS 2007)
  • 2. The first step in creating a database is to think about why you need it -- what is its purpose? Once you know that, you can begin designing your own database. Ask yourself questions like: What kinds of information will it store? How will I have to break that information down, so it can be stored in my database? How will I use the data once it's in there?

This lesson will walk you through the steps of database design, using a bookstore scenario. You will determine the purpose of the database, and plan the tables and fields you will need for a very simple bookstore database. 2 Guevarra Institute of Technology
  • 3. The Ready-2-Read Bookstore Scenario The best way to learn about designing a database is to jump right into the process. Let's pretend we work for the Ready-2-Read bookstore and we need to build a database for the store to use. Let's think about what we might need the database to do for us. The following diagram shows that we have customers, and we sell books via orders, both in the store and online. The store needs a way to keep track of these thin 3 Guevarra Institute of Technology
  • 4. Determine the Purpose of the Database The first step of designing a database is to determine the purpose of the database. What do we need it to do? At Ready-2-Read, our customers will place orders for books. At the very least, we will want our database to track the books we sell, the customers we sell them to, and the date of each of the orders. The database will also be able to tell us where our customers live when we need to send them books or coupons. Additionally, we can use it to track our sales or to make a bestseller list to post in the store. 4 Guevarra Institute of Technology
  • 5. Plan Database Tables Once you have established the purpose, you can begin brainstorming about how to break the information up into the tables that your database will need to store the data. Recall that a table is a collection of records and each record is broken up into the smallest pieces of needed information, called fields. Since we are planning a database to track our customers, the books we have, and the orders our customers place, we will need a table for each one of these. TIP: Keep your database usable to others by giving your tables simple, easy to understand names. 5 Guevarra Institute of Technology
  • 6. Plan Table Fields Once you know what tables you need, the next step is deciding what fields belong in each table. Remember that fields are the smallest chunk of information in any record. Let's look at our Ready-2-Read bookstore example again. There will be several fields in our Customers table. We'll obviously want their first name and last name. We'll also need an address if we need to send the customer his order. Email will be necessary if we need to contact the customer when there is an issue with their order. 6 Guevarra Institute of Technology
  • 7. We will also need several fields in the Books table. Title and Author make sense for books. We'll need a Price for each book. Category will help us know what type of books sell the best, so we can order more books that fit into that category. 7 Guevarra Institute of Technology
  • 8. The Orders table will have fewer fields. We'll need this table to track the Customer who is placing the order, the Book the customer is ordering, and the Date the order is placed. Don't worry if your plan doesn't include every possible field you may need. Access lets you add fields to tables any time you think you need another one! 8 Guevarra Institute of Technology
  • 9. Challenge Imagine you want to use a database at your new coffee shop. Plan your database: What would you want to track with your database? What database tables would you need? What fields will be in each database table? 


 9 Guevarra Institute of Technology