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
How many joins can you have in sql?
How to select 10 records from a table?
Is sql harder than python?
what is a constraint? Tell me about its various levels. : Sql dba
How do I clear the screen in sql plus?
What is informix sql?
What is the difference between delete and truncate statement in sql?
Explain the the delete statements in sql?
What are character functions in sql?
Can you join a table to itself?
How does pl sql work?
What is cursor and why it is required?
how to rename an existing column in a table? : Sql dba
How much does a sql dba make? : SQL DBA
Can we use delete in merge statement?