0% found this document useful (0 votes)
42 views1 page

Any

The synopsis provides the syntax for using ANY in a subquery to check if a value is <, >, <=, >=, = or != to ANY value returned by the subquery. An example demonstrates using >ANY to get employee details whose salary is greater than any salary in department 10.

Uploaded by

venkatbj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

Any

The synopsis provides the syntax for using ANY in a subquery to check if a value is <, >, <=, >=, = or != to ANY value returned by the subquery. An example demonstrates using >ANY to get employee details whose salary is greater than any salary in department 10.

Uploaded by

venkatbj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

syn: <exp> {< | > | !< | !> | <= | >= | = | !

= }
ANY(<select statement>)

ex: get the details of emps whose salary is greater than


the salary of dept 10

sol:
select * from emp
where sal>any(select sal from emp where dno=10)

You might also like