Q:

What does the following query do?

belongs to collection: DBMS - SQL MCQ

0

What does the following query do?
select name, ID, branch
from student, department
where student.branch = department.branch;


  1. It gives all values of name, ID, branch from both the relations only if all those attributes are present in both
  2. It gives all values of name, ID, branch from their respective relations
  3. It gives the values of name, ID, branch from their respective relations where the values in the branch attribute are same
  4. It gives the values of name, ID, branch from their respective relations where all the values are matching with each other

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(c).It gives the values of name, ID, branch from their respective relations where the values in the branch attribute are same

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

DBMS - SQL MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
The ________ clause is used to list the attributes... >>
<< What does the above query do?...