Question: Fall 2018 CSCI 456/556 - Adv. Database Applications (10 points) Identify the primary key and foreign key for the relations below for a company that

 Fall 2018 CSCI 456/556 - Adv. Database Applications (10 points) Identify
the primary key and foreign key for the relations below for a

Fall 2018 CSCI 456/556 - Adv. Database Applications (10 points) Identify the primary key and foreign key for the relations below for a company that runs a restaurant chain. The company has many restaurants. Each restaurant maintains its own invoice numbers. That is to say, invoice numbers are only unique within a restaurant. The RESTAURANT relation records information of restaurants. The "DISH" relation records information of dishes offered by the company. The . CUSTOMER" relation records customer information. The"INVOICE" 1. relation records "ININVOICE" relation records each dish in invoices. overall information of invoices such as date, time, and total amount paid. The RESTAURANT (RestaurantNo, Name, Address, Phone) DISH(Dishld, Name, Price, LongDesc) CUSTOMER(CustomerNo, Name, Address, Phone, Email) INVOICE(Invoice No, RestaurantNo, CustomerNo, Date, Time, TotalAmount) ININ VOICE( InvoiceNo, RestaurantNo, Dishld, Quantity, Price) Primary Key Foreign Key Table Referenced Table RESTAURANT DISH CUSTOMER NVOICE NINVOICE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!