DBMS Some Important Questions
DBMS Some Important Questions
Relational Algebra
1. What is relational algebra or what its purpose
2. Write down basic operations of Relational Algebra and their syntaxes of each of them.
3. What is the meaning of Select operation could you please write the relational algebra for the below query and given
schemas
Write down the relational algebra query for the account table –
“Find the all accounts detail whose balance less than 400”
“Display all the tuples whose account is in Los Angeles”
4. What is project operation explain below relational algebra query using project operation
5. What do you mean by join operation explain with below example. Student and library table where both tables has
one common key student Id.
“Find the records of student who have at least one library book”
6. What do you mean by Cartesian product explain by taking any example. If student has 4 records and library has 3
records then how many records will be in Cartesian product?
7. What do you mean by union explain with the help of example.
“Find the names of the customers who have either a bank account or a loan account i.e. have ether a acc_id or
loan_id”
9. Explain the minus operator by answer the below query in relational algebra
“Print the customer names who have only bank accounts i.e. persons who have no loan account.”
10. Explain the divide operation and answer the below query in relational algebra
“Write down the names of the persons who solved all the puzzles”