You attempt to query the data base with this command:
SELECT name, salary FROM employee WHERE salary=(SELECT
salary FROM employee WHERE last name='Wagner' OR dept no=233)

Choose most appropriate option from the following:
1)Sub-queries are not allowed in the where clause.
2)a multiple row sub-query used with a single row comparison
operator.
3)a single row query is used with a multiple row comparison
operator.

Answer Posted / sharmaamitanand

In my knowlenge if i run this query,the subquery is likely
to return more than single rows as resultset as OR condition
is used so 3rd option is likely to be occured.

Is This Answer Correct ?    26 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is coupling in oops?

592


What is constructor overloading in oop?

601


What are the 3 principles of oop?

614


What is the benefit of oop?

568


Where You Can Use Interface in your Project

1423






What is object in oops?

610


Is react oop?

607


Why is static class not inherited?

591


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1454


Why do we use oops?

589


what are the ways in which a constructors can be called?

1578


What is a superclass in oop?

665


Are polymorphisms mutations?

693


Why do pointers exist?

655


Can abstract class have normal methods?

608