Engineering Questions with Answers - Multiple Choice Questions
MCQs on Relational Query Operations and Relational Operators
Using which language can a user request information from a database?
Explanation: Query language is a method through which the database entries can be accessed.
Student(ID, name, dept name, tot_cred)
In this query which attributes form the primary key?
Explanation: The attributes name, dept and tot_cred can have same values unlike ID.
Which one of the following is a procedural language?
a) Domain relational calculus
b) Tuple relational calculus
c) Relational algebra
d) Query language
Explanation: Domain and Tuple relational calculus are non-procedural language. Query language is a method through which database entries can be accessed.
The_____ operation allows the combining of two relations by merging pairs of tuples, one from each relation, into a single tuple.
Explanation: Join finds the common tuple in the relations and combines it.
The result which operation contains all pairs of tuples from the two relations, regardless of whether their attribute values match.
b) Cartesian product
d) Set difference
Explanation: Cartesian product is the multiplication of all the values in the attributes.
The _______operation performs a set union of two “similarly structured” tables
Explanation: Union just combines all the values of relations of same attributes.
The most commonly used operation in relational algebra for projecting a set of tuple from a relation is
Explanation: Select is used to view the tuples of the relation with or without some constraints.
The _______ operator takes the results of two queries and returns only rows that appear in both result sets.
Explanation: The union operator gives the result which is the union of two queries and difference is the one where query which is not a part of second query.
A ________ is a pictorial depiction of the schema of a database that shows the relations in the database, their attributes, and primary keys and foreign keys.
a) Schema diagram
b) Relational algebra
c) Database diagram
d) Schema flow
The _________ provides a set of operations that take one or more relations as input and return a relation as an output.
a) Schematic representation
b) Relational algebra
c) Scheme diagram
d) Relation flow