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
What is the difference between a constructor and a destructor?
Why is abstraction used?
What is class in oop with example?
How do you define social class?
what type of question are asked in thoughtworks pair programming round ?
What is encapsulation in oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
write string class as your own class in java without using any built-in function
What is the benefit of oop?
What is encapsulation process?
What does enum stand for?
What are properties in oop?
What do you mean by overloading?
what is graphics
What is static modifier?