Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
a. The above given ER model shows a ternary relationship. Construct an alternative ER Diagram that
uses only a binary relationship.
b. Convert the following given ER Model to relational schemas:
4 ,
Apply normalization on the table given below which is in un-normalized form, apply normalization upto
Q5.
BCNF and desig
Emp-Name Month Sales Bank-ld Bank-Name
Emp-ld
AA Jan 1000 BOl SBI
E01
Feb 1200
Mar 850
Jan 2200 B02 UT1
E02 BB
Feb 2500
CC Jan 1700 BOl SBI
E03
Feb 1800
Mar 1850
Apr 1725
a. Discuss Primary Key, Foreign Key, Candidate Key, Super Key with examples.
Q6.
Why would you choose a database system instead of simply storing data in files? When would it
b.
make sense not to use a database system?
ABC Furniture Company (Referential Integrity Constraints) schema is given. Write SQL queries for the
Q7.
following statements.
CUSTOMER
Customer ID FE Istorner_Narne
-- I Custorner_Address I City _State LPostal_Code
ORDER
Order Date Customer_ID
LOrder Id
ORDER LINE
r order Id I Product id I Ordered_Quantity II
PRODUCT A-77
I Product Ict[DescriptioniProduct_Finish I Standard Price [ Product_Line_Id
Show each product_line_id and the total number of products for the product_line_id.
a.
Show product_id and description for all products whose names contain a string of "table".
b.
c. Change a product_description from 'Duplex Table Lamp' to 'Arch Table Lamp'.
d. Show dates and how many orders received in each individual day.