0% found this document useful (0 votes)
27 views

Assignment-2 2011

Integrity constraints are rules that define valid data for tables. The main types are entity integrity, referential integrity, and domain integrity. Entity integrity requires each row to have a unique primary key. Referential integrity enforces relationships between tables through foreign keys. Domain integrity checks that values are of the expected data type. Equi joins match rows where joined columns have equal values. Outer joins return all rows from one or both tables even if the joined columns do not match. Mapping strong entities to tables, weak entities to tables with a composite primary key including the parent entity's primary key, and multi-valued attributes to linking tables maintains data integrity in the relational model.

Uploaded by

Prateek Panjiar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Assignment-2 2011

Integrity constraints are rules that define valid data for tables. The main types are entity integrity, referential integrity, and domain integrity. Entity integrity requires each row to have a unique primary key. Referential integrity enforces relationships between tables through foreign keys. Domain integrity checks that values are of the expected data type. Equi joins match rows where joined columns have equal values. Outer joins return all rows from one or both tables even if the joined columns do not match. Mapping strong entities to tables, weak entities to tables with a composite primary key including the parent entity's primary key, and multi-valued attributes to linking tables maintains data integrity in the relational model.

Uploaded by

Prateek Panjiar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

DBMS: Assignment 2

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.

You might also like