



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Answer: The three levels are the external or view level, conceptual or logical level, and internal or physical level.
25.What is a candidate key? Answer: A candidate key is a minimal attribute set capable of uniquely identifying each row in a relation. 26.What is a foreign key? Answer: A foreign key is an attribute or set of attributes that references a key in another table to establish a relationship. 27.What is referential integrity? Answer: Referential integrity requires every foreign-key value to match a referenced key value or be null where permitted. 28.What is relational algebra? Answer: Relational algebra is a procedural query language using operations such as selection, projection, union, difference, product, and join. 29.What does the selection operation do? Answer: Selection filters rows according to a specified condition. 30.What does the projection operation do? Answer: Projection selects particular columns from a relation and may remove duplicate rows. 31.What is SQL? Answer: SQL, or Structured Query Language, is used to define, manipulate, query, control, and manage relational databases. 32.What is the purpose of the SQL SELECT statement? Answer: SELECT retrieves specified data from one or more tables or views. 33.What is a SQL JOIN? Answer: A JOIN combines rows from two or more tables using a related column or condition.
34.What is the difference between an inner join and an outer join? Answer: An inner join returns matching rows, while an outer join can also return unmatched rows from one or both tables. 35.What is the purpose of GROUP BY in SQL? Answer: GROUP BY groups rows with common values so aggregate functions can be applied to each group. 36.Name four common SQL aggregate functions. Answer: COUNT, SUM, AVG, MIN, and MAX are common aggregate functions. 37.What is a subquery? Answer: A subquery is a query nested inside another SQL statement. 38.What is a view? Answer: A view is a virtual table defined by a query and based on one or more underlying tables. 39.What is a functional dependency? Answer: A functional dependency exists when one attribute or set of attributes determines the value of another attribute or set of attributes. 40.What is normalization? Answer: Normalization organizes tables to reduce redundancy, prevent anomalies, and improve data integrity. 41.What is first normal form? Answer: A relation is in first normal form when each field contains atomic values and repeating groups are removed. 42.What is second normal form? Answer: A relation is in second normal form when it is in first normal form and every non-key attribute depends on the whole candidate key.