introduction to databases day 2
DESCRIPTION
Introduction to Databases Day 2. SRT II Mr. Davis Fall 2011. Objective. SWBAT…. Design a normalized sales tracking database by expanding the contact database built in Day 1. Day 2. Build on the Customer DB Now we need to add sales information Where to start?. Order Tracking DB. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/1.jpg)
Introduction to Databases
Day 2
SRT IIMr. DavisFall 2011
![Page 2: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/2.jpg)
Objective
SWBAT….Design a normalized sales tracking database by expanding the contact database built in Day 1.
![Page 3: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/3.jpg)
Day 2
• Build on the Customer DB
• Now we need to add sales information
• Where to start?
![Page 4: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/4.jpg)
Order Tracking DB
• Planning– Fields to include
• How do fields relate?– Establishing relationships
![Page 5: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/5.jpg)
Order Tracking DB
• Now we can start to ask interesting questions!
• Query design
![Page 6: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/6.jpg)
Order Tracking DB
• What about entering the information?– Designing a data-entry form
![Page 7: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/7.jpg)
Extras
• How do we prevent bad data from getting into tables in the first place?– Input mask– Validation rule
• Add validation rules to email, ZIP code, and state fields
![Page 8: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/8.jpg)
Sample data
• Checking your structure can be difficult– Import existing ‘real’ data– Generate ‘dummy’ data
• For sample data– Free data generator– Customize fields, types of data –
experiment!
![Page 9: Introduction to Databases Day 2](https://reader033.vdocuments.us/reader033/viewer/2022051316/56815b20550346895dc8dab5/html5/thumbnails/9.jpg)
MS Access Assignment
• Design an experiment-tracking DB• Requirements– Tables for
• Researchers• Test performed (at least 5 different tests)• Results
– Data entry forms• New researcher• Test results
– Populate the DB with sample data– Save in H: drive, SRT II Turn-in folder; YourName_ResearchDB.accdb
• Due at the end of next class