Answer Posted / bunty
IN - used to select multiple rows based on any of the key
provided
SQL - select distinct employeeid from orders where orderid
in ( select orderid from orderdetails where discount >= 10)
ANY - used in case of relational queries to compare result
with any of the key.
SQL - select custID from orders where regionID != "E" and
discount > any (select discount from orders where regionID
= "E" and discount > 3)
ALL - used in case of relational queries to compare result
with all of the keys.
SQL - select custID from orders where regionID != "E" and
discount > all (select discount from orders where regionID
= "E" and discount > 3)
Cheers -
Bunty
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
what is dbms? : Sql dba
What is synchronized subquery?
Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?
How do you write an inner join query?
what is the difference between primary key and unique key? : Sql dba
What is full join?
what are set operators in sql? : Sql dba
what is self-join? : Sql dba
Mention what are different methods to trace the pl/sql code?
How can check sql version from command line?
which tcp/ip port does sql server run on? : Sql dba
What is dense_rank?
what are the differences between char and nchar? : Sql dba
What are commit, rollback, and savepoint?
What is trigger in sql and its types?