1. What is a relation? Differentiate between a relation schema and a relation instance. Define the terms arity and degree of a relation. What are domain constraints?
..................................................................................................................................................................
2. What SQL construct enables the definition of a relation? What constructs allow modification of relation instances?
..................................................................................................................................................................
3. What are integrity constraints? Define the terms primary key constraint and foreign key constraint. How are these constraints expressed in SQL? What other kinds of constraints can we express in SQL?
..................................................................................................................................................................
4. What does the DBMS do when constraints are violated? What is referential integrity? What options does SQL give application programmers for dealing with violations of referential integrity?
..................................................................................................................................................................
5. When are integrity constraints enforced by a DBMS? How can an application programmer control the time that constraint violations are checked during transaction execution?
..................................................................................................................................................................
6. What is a relational database query?
..................................................................................................................................................................
7. How can we translate an ER diagram into SQL statements to create tables? How are entity sets mapped into relations? How are relationship sets mapped? How are constraints in the ER model, weak entity sets, class hierarchies, and aggregation handled?
..................................................................................................................................................................
8. What is a view? How do views support logical data independence? How are views used for security? How are queries on views evaluated? Why does SQL restrict the class of views that can be updated?
..................................................................................................................................................................
9. What are the SQL constructs to modify the structure of tables and destroy tables and views? Discuss what happens when we destroy a view.
..................................................................................................................................................................
3.1 Define the following terms: relation schema ,relational database schema, domain, relation instance, relation cardinality, and relation degree.
..................................................................................................................................................................
3.2 How many distinct tuples are in a relation instance with cardinality 22?
..................................................................................................................................................................
3.7 Consider the relations Students, Faculty, Courses, Rooms, Enrolled, Teaches, and Meets_In defined in Section 1.5.2.