Chapter 9 Parallel Project:
Using PHPMyAdmin create the 3 (maybe 4) tables (if you didn't do this already)
- Customer
- Product
- Order
- Line-item (possible 4th, this allows more then one item purchased per order)
Answers questions 1 through 6. Remember not to make it to big, no way near as big as the author's. I'm thinking 3 or 4 tables max.
From the book, Chapter 9: Parallel Project Questions 1 -> 6:
1. Rethink the objective(s) of your business, from the point of view of the kind of data that you will need to handle, and the kind of information you will need to store and later retrieve. Virtually every business has products and/or services to sell and needs to have some kind of inventory management system to deal with all aspects of information relat- ing to those products and services. Time constraints may limit the scope of your effort, but give some thought to what is both reasonable and feasible to implement, given your particular situation.
2. Decide what tables you will need for your data, and the relationships between them.
3. Decide what attributes should go into each table, what data type each attribute should have, and what keys should be used to identify the rows in individual tables and connect the tables.
4. Think about any “business rules” that may be peculiar to your business and make sure they do not “break” your design. If you discover a business rule that is inconsistent with your database design, revise your design accordingly.
5. Implement your design in MySQL, using any combination of phpMyAdmin and the com- mand-line interface, but try to use both enough to enhance your familiarity with each.
6. Add enough data to each table so that you can perform some meaningful queries, and test your database until you are satisfied it is going to help you perform the necessary tasks your business requires.
Make me a simple web page with a screen shot of your E-R diagram from PhP MyAdmin.
Sample Tables (for example only, yours will probably differ):
- Each table should have its own ID as primary key
- Customer Table:
- Customer ID
- First Name
- Last Name
- e-mail
- Address
- Products Table
- Product ID
- Price
- Quantity In Stock
- Description (memo)
- Order Table
- Transaction ID
- Customer ID
- Product ID
- Quantity
|