adplus-dvertising
frame-decoration

Question

Consider  the  query  :  SELECT  student_name  FROM  students  WHERE class_name=(SELECT  class_name  FROM  students  WHERE  math_marks=100); what will be the output ?

a.

the list of names of students with 100 marks in mathematics

b.

the  names  of  all  students  of  all  classes  in  which  at  least  one  student  has 100 marks in mathematics

c.

the names of all students in all classes having 100 marks in mathematics

d.

the names and class of all students whose marks in mathematics is 100

Answer: (b).the  names  of  all  students  of  all  classes  in  which  at  least  one  student  has 100 marks in mathematics

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider  the  query  :  SELECT  student_name  FROM  students  WHERE class_name=(SELECT  class_name  FROM  students  WHERE  math_marks=100); what will be the output ?

Similar Questions

Discover Related MCQs

Q. Which of the following statements is wrong?

Q. A recursive foreign key is a:

Q. A sub class having more than one super class is called:

Q. A relation R={A,B,C,D,E,F} is given with following set of functional dependencies:

F={A→B,AD→C,B→F,A→E}.

Which of the following is Candidate Key?

Q. Which statement is false regarding data independence?

Q. In DBMS, deferred update means:

Q. Which statement is false regarding data independence ?

Q. Two phase protocol in a database management system is:

Q. A relation R = {A, B, C, D, E, F} is given with following set of functional dependencies:

F = {A→B, AD→C, B→F, A→E}

Which of the following is candidate key ?

Q. Immediate updates as a recovery protocol is preferable, when:

Q. Which of the following statement is wrong ?

Q. A subclass having more than one super class is called .................

Q. A schema describes:

Q. One approach to standardizing storing of data:

Q. In a relational schema, each tuple is divided in fields called:

Q. An embedded pointer provides:

Q. A locked file can be:

Q. An Entity - relationship diagram is a tool to represent:

Q. Multi-valued dependency among attribute is checked at which level ?

Q. A WINDOW into a portion of a data base is: