Database Management System
Covers SQL operations, relational algebra concepts, and database constraints including GROUP BY, JOIN, Selection, Projection, SQL predicates (IN, LIKE, BETWEEN), and key constraints
Questions
Which of the following divides the result into a number of clusters?
- COUNT
- GROUP BY
- SUM
- ORDER BY
- MAX
Which of the following permits the combining of two relations to form a single relation and the processing of relationships existing between the operand relations in DBMS?
- JOIN
- Union
- Difference
- Intersection
- Cartesian product
Which of the following operations selects only some of the tuples in DBMS?
- JOIN
- Projection
- Selection
- Difference
- Intersection
Which operation is used for removing common tuples from the first relation in DBMS?
- Intersection
- Difference
- Projection
- Selection
- JOIN
Which of the following predicates is used to test an attribute value against a set of values?
- LIKE predicate
- BETWEEN predicate
- AVG
- IN predicate
- MIN
Which of the following can arrange the result of a query in either ascending order (ASC) or descending order (DESC) in DBMS?
- GROUP BY
- COUNT
- SUM
- AVG
- ORDER BY
By which predicate can one access the value in a given interval in DBMS?
- BETWEEN predicate
- LIKE predicate
- IN predicate
- COUNT
- SUM
Which predicate is used for pattern matching and to compare a string constant with a column of type character in DBMS?
- IN predicate
- LIKE predicate
- GROUP-BY
- COUNT
- SUM
Which of the following is used for the simply concatenation of tuples belonging to the two tuples and consisting of all the possible combination of the tuples?
- Selection
- JOIN
- Cartesian product
- Projection
- Difference
Which of the following quantified predicates is used for existential quantifier in DBMS?
- ALL
- ANY
- LIKE
- IN
- BETWEEN
Which of the following operations removes common tuples from the first relation in DBMS?
- Difference or minus
- Sum
- Cartesian product
- Projection
- Selection
Which of the following selects the common tuples from two relations in DBMS?
- Count
- Union
- Intersection
- Projection
- Selection
Which of the following is used to reference to a table through the primary key of the related table in DBMS?
- Attribute
- Candidate key
- Foreign key
- Primary key
- Entity
Which of the following constraints specifies that within each tuple, the value of each attribute must be an atomic value in advance DBMS?
- Domain constraint
- Super key
- Candidate key
- Primary key
- Attribute
Which of the following yields a vertical subset of the relation, either to reduce the number of attributes in a resultant relation or to reorder attributes in DBMS?
- Projection
- Selection
- JOIN
- Difference
- Intersection