Home » RDBMS Server » Server Administration » is there any EXISTS() in oracle
is there any EXISTS() in oracle [message #57856] Fri, 11 July 2003 06:02 Go to next message
sidd
Messages: 130
Registered: May 2003
Senior Member
in sql server there is an exists(), is there any funtion similar to exists() in oracle
Re: is there any EXISTS() in oracle [message #57871 is a reply to message #57856] Mon, 14 July 2003 02:15 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Yes there is:

  1  select ename
  2    from emp e
  3   where exists ( select d.deptno
  4                    from dept d
  5                   where d.deptno = e.deptno
  6*                    and d.dname like 'A%' )
SQL> /

ENAME
----------
CLARK
KING
MILLER

SQL> 
HTH,
MHE
Previous Topic: Deliberately need ur Help
Next Topic: indexes
Goto Forum:
  


Current Time: Fri Sep 20 13:48:36 CDT 2024