Database Management Systems Cse2004 Fs d1
Database Management Systems Cse2004 Fs d1
2. a. As per the rules of the firm, how can you limit the entry of such ambiguous data
in to the table at the database level? Illustrate with Constraints for the following
statements
i. Every product should have a name. (1)
ii. Every product should have a Product code that is distinct and the length of
the product code should be equal to six digits. (2)
iii. Product quantity should be zero or greater than zero and less than 200. (2)
3. a. What are the responsibilities of a DBA? If we assume that the DBA is never
interested in running his or her own queries, does the DBA still need to understand
query optimization? Why? (5)
b) Reason out why Parent Keys Not Found Error occur during the enforcement of
foreign keys and how will you fix it with a suitable example. (5)