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 / nitin

option b is correct because we can not compare more than one values with single value using '=' operator.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is this job good for future? can do this job post grduate student?

1684


What are the 3 principles of oop?

608


What is inheritance write a program to show use of inheritance?

605


What is polymorphism and types?

592


What is abstraction in oops with example?

764






what type of question are asked in thoughtworks pair programming round ?

1751


Which is not an object oriented programming language?

530


What are the types of abstraction?

549


Advantage and disadvantage of routing in telecom sector

779


Which type does string inherit from?

608


What is the difference between static polymorphism and dynamic polymorphism?

571


How to hide the base class functionality in Inheritance?

630


How do you answer polymorphism?

572


write a C++ program for booking using constructor and destructor.

2039


Can an interface inherit a class?

551