Assignment-2 2011
Assignment-2 2011
1. What are integrity constraints? List different types of integrity constraints and explain any two of them. 2. 3. Differentiate between equi Join and outer joins operations. Consider the following relational database. For each of the following queries, give a relational algebraic expression and SQL statement. Employee (employee_name, street, city) Works (employee_name, company name, salary) Company (company name, city) I. Find the names, street address and cities of residence of all employees who work for First Bank Corporation and earn more than Rs. 10,000 per month. (SQL: Nested Query) II. Find the names of all employees in this database who live in the same city as the company for which they work. (SQL: correlated nested Query) 4. Write short notes on: a) Embedded SQL b) Dynamic SQL 5. Explain the mapping rules for Strong entities, Weak entities and Multi-valued attributes to convert in relational model.