Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

Students also viewed these Databases questions