1. Trang chủ
  2. » Kỹ Năng Mềm

Assignment1 14130067st hcmuaf edu vn

3 68 2

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

For the following requests, pack your answers into the zip file Assignment1_AccountName.zip, then handle to the evaluator via email (XYZ@fsoft.com.vn) Barem: Q1-30%, Q2.1-40%, Q2.2-30% Question Consider the following relations for a database that keeps track of student enrollment in courses and the books adopted for each course (Primary Key is mark post-fix with #): CUSTOMER(id#, cd#, version#, name, addr, representative) T_ORDER(id#, type, cd, name, customer_cd, customer_version, received_date, request_content) ESTIMATION(id#, cd, order_cd, total_amount) Draw a relational schema diagram specifying the foreign keys for this schema Answer: Note: # primary key, đuôi foreign key Question Given the order table with following initial structure (Primary Key is mark post-fix with #) Orde r 1001 1002 1003 Customer Information Cust Name Addr 41 42 43 Jones Smith Jones 121 1st 222 2nd 121 1st Quant 200 10 Part1 Amt1 Screw Motor Saw 2.00 52.00 121.00 Quant 300 Part2 Amt2 Nut Brace 2.25 44.44 Quant 100 Part3 Wasshr Please: Normalize that table structure to the first, second and third normalization forms Draw relational schema diagram for the tables defined in the third normalization form above Amt 0.75 Answer: Q2.1 + 1F Orde r 1001 1001 1001 1002 1002 1003 Customer Information Cust Name Addr 41 41 41 42 42 43 Jones Jones Jones Smith Smith Jones 121 1st 121 1st 121 1st 222 2nd 222 2nd 121 1st Quant Part Amt 100 200 300 10 Wasshr Screw Nut Motor Brace Saw 0.75 2.00 2.25 52.00 44.44 121.00 + 2F Orde r 1001 1002 1003 Customer Information Cust Name Addr 41 42 43 121 1st 222 2nd 121 1st Jones Smith Jones Orde r 1001 1001 1001 1002 1002 1003 Quant Part Amt 100 200 300 10 Wasshr Screw Nut Motor Brace Saw 0.75 2.00 2.25 52.00 44.44 121.00 + 3F Customer Information Cust Name 41 Jones 42 Smith 43 Jones Q2.2 Addr 121 1st 222 2nd 121 1st Orde r 1001 1001 1001 1002 1002 1003 Quant Part Amt 100 200 300 10 Wasshr Screw Nut Motor Brace Saw 0.75 2.00 2.25 52.00 44.44 121.00 Orde r 1001 1002 1003 Cust 41 42 43 Note: #:primary key, đuôi foreign key

Ngày đăng: 24/10/2019, 23:15

Xem thêm:

TỪ KHÓA LIÊN QUAN

w