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 a join?
Which is better cte or subquery?
Write a sql query to get the third highest salary of an employee from employee_table?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
What is exit statement?
Which is faster truncate or drop?
Is clustered index a primary key?
Is t sql a programming language?
How many parts of a pl sql block are optional?
What are some emotional triggers?
What is pivot query?
What information is needed to connect sql*plus an oracle server?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
Is merge a dml statement?
What are different types of keys?