Data Modeling - entity-relationship diagrams, relational model, constraints, relational algebra, relational calculus, Codd rules - Question Bank
1. What is the primary advantage of using a declarative query language like SQL (which is based on relational calculus) over a procedural one like relational algebra?
2. Which of Codd's rules is often considered the most important for enforcing the relational model's integrity?
3. In the context of ER diagrams, a 'cardinality ratio' defines:
4. Which of the following is NOT a standard operator in Relational Algebra?
5. The concept of a 'relation' in the relational model is formally defined as:
6. What is the purpose of the 'non-subversion' rule (Rule 12) in Codd's 12 rules?
7. Which of Codd's rules implies that the database should not contain any 'foreign keys' in the traditional sense, but rather rely on relational algebra operations for relating tables?
8. Codd's Rule 9, 'Logical Data Independence', ensures that:
9. What does Codd's Rule 8, 'Physical Data Independence', ensure?
10. Codd's Rule 6, the 'View Update Rule', states that:
11. Which of Codd's rules is fundamental to the concept of relational algebra and calculus, stating that data manipulation must be supported by a high-level language?
12. Codd's Rule 4 emphasizes the importance of:
13. According to Codd's rules, what must be supported for handling missing or inapplicable information?
14. Codd's Rule 2, the 'Guaranteed Access Rule', states that:
15. Which of Codd's rules states that the database must be logically representable and accessible through the relational model alone?
16. Codd's 12 Rules are a set of criteria for evaluating:
17. What is the relationship between Relational Algebra and Relational Calculus?
18. In Tuple Relational Calculus, a query is expressed as:
19. Which type of relational calculus focuses on specifying the domains (possible values) that attributes must take?
20. Which type of relational calculus focuses on specifying the variables that tuples must range over?
21. What is Relational Calculus?
22. Which relational algebra operator is used to remove duplicate tuples from a relation?
23. The Union operation (∪) in relational algebra requires that the two relations have:
24. Which relational algebra operator corresponds to the SQL `WHERE` clause?
25. Which relational algebra operator corresponds to the SQL `SELECT` statement that specifies columns?
26. The Join operation (⋈) in relational algebra combines tuples from two relations based on:
27. What is the symbol for the Project operation in relational algebra?
28. What is the symbol for the Select operation in relational algebra?
29. Which relational algebra operator is used to select columns from a relation?
30. Which relational algebra operator is used to select rows from a relation based on a condition?
31. What is Relational Algebra?
32. What is the fundamental difference between a PRIMARY KEY and a UNIQUE constraint?
33. A CHECK constraint is used to:
34. What does the 'NOT NULL' constraint enforce on a column?
35. Which constraint ensures that the values in a specific column are unique across all rows?
36. What is a 'foreign key' in the relational model?
37. What is a 'primary key' in a relational table?
38. What is the term for the number of tuples in a relation?
39. What is the term for the number of attributes in a relation?
40. What is an 'attribute' in the relational model?
41. In the relational model, what is a 'tuple'?
42. What is the relational model?
43. A 'participation constraint' in an ERD specifies:
44. Which type of relationship in an ERD indicates that each instance of an entity can be associated with at most one instance of another entity?
45. What is a 'weak entity' in the context of ER diagrams?
46. An oval shape connected to an entity or relationship in an ERD represents:
47. What does a diamond shape represent in an ERD?
48. In an ERD, what does a rectangle typically represent?
49. What is the primary purpose of an Entity-Relationship Diagram (ERD)?