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 the use of & in pl sql?
Mention what is the use of function "module procedure" in pl/sql?
What is a rank in sql?
explain the delete statements in sql
How to read/write files from pl/sql?
How do you create an update query?
how to include comments in sql statements? : Sql dba
What do you mean by query optimization?
How do I order columns in sql?
How is pl sql different from sql?
What are stored procedures used for?
what are the authentication modes in sql server? : Sql dba
what is 'mysqlcheck'? : Sql dba
Can we rename a column in the output of sql query?
how to drop an existing view in mysql? : Sql dba