Presentation is loading. Please wait.

Presentation is loading. Please wait.

Explain the above query by explaining each of the following parts (you can use the image): a. Distinct CustomerName b. From Order_t NewOrder, Customer_T.

Similar presentations


Presentation on theme: "Explain the above query by explaining each of the following parts (you can use the image): a. Distinct CustomerName b. From Order_t NewOrder, Customer_T."— Presentation transcript:

1

2 Explain the above query by explaining each of the following parts (you can use the image): a. Distinct CustomerName b. From Order_t NewOrder, Customer_T CLient c. Where ProductDescription = ‘Computer Desk’ d. NewOrder.CustormerID = Client.CustomerID

3 Explain the above query by explaining each of the following parts (you can use the image): a. Select CustomerName b. From Product_t Item, OrderLine_t Line  c. Where ProductDescription = ‘Computer Desk’   d. Item.ProductID = Line.ProductID

4  A club needs to keep records about its wait staff, the weddings it holds and which wait staff work those weddings.  The club needs to keep track of name, social security number and pay rate of each wait staff.  Each wedding has the paying person’s last name with a unique number as title, and has a date/time and number of guest for the wedding.  Wait staff works one or many weddings and a wedding must have one or many wait staff.

5 A club needs to keep records about its wait staff, the weddings it holds and which wait staff work those weddings. The club needs to keep track of name, address and pay rate of each wait staff. Each wedding has the bride’s last name and groom’s last name as title, and has a date/time and number of guest for the wedding. Wait staff may work none, one or many weddings and a wedding must have one or many wait staff.

6 Best is because  Worst is because

7 Best is because  Worst is because

8 a. Each vender can supply many parts to any number of warehouses but need not supply any parts. b. Each part can be supplied by any number of vendors to more than one warehouse, but each part must be supplied by at least one vendor to a warehouse. c. Each warehouse can be supplied with any number of parts from more than one vendor, but each warehouse must be supplied with at least one part.

9 a. Each vender must supply one or many parts to any number of warehouses. b. Each part can be supplied by any number of vendors to more than one warehouse, but each part must be supplied by at least one vendor to a warehouse. c. Each warehouse can be supplied with any number of parts from more than one vendor, but each warehouse must be supplied with at least one part.

10 5. 10 pts. What is the degree of the relationship in #4? Define degree in your own words.

11  Explanation:   Give an example of  subtype from the figure:  Give an example of a  supertype:  Give all the attributes for CONSULTANT: pts. Is there a relationship in the above figure? If yes, give the relationship. If no, explain what is the above.

12

13  20 pts. Explain each:  Physical Schema   Logical Schema  20 pts. Explain each:  Conceptual Schema   Logical Schema

14 Database maintenance Physical database design and definition Database implementation Logical database design Conceptual data modeling


Download ppt "Explain the above query by explaining each of the following parts (you can use the image): a. Distinct CustomerName b. From Order_t NewOrder, Customer_T."

Similar presentations


Ads by Google