Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (61.77 KB, 3 trang )
For the following requests, pack your answers into the zip file Assignment1_AccountName.zip,
then handle to the evaluator via email ()
Barem: Q1-30%, Q2.1-40%, Q2.2-30%
Question 1
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
là foreign key
Question 2
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