Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: newbie question on WHERE...

Re: newbie question on WHERE...

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 1 Feb 2001 23:44:03 +0100
Message-ID: <t7jpho2ckoil25@beta-news.demon.nl>

correct syntax is
(job,empno) in (select etc...)

Hth,

Sybrand Bakker, Oracle DBA

"PC" <prabhaweb_at_netscape.net> wrote in message news:3A79771E.C100298C_at_netscape.net...
> Can the WHERE clause take 2 variables in the same line? ie,
>
> SQL> select deptno
> 2 from emp
> 3 where job, empno IN
> 4 (select job, empno
> 5 from emp
> 6 where ename='CLARK');
> where job, empno IN
> *
> ERROR at line 3:
> ORA-00920: invalid relational operator
>
> I was trying to make the above query as one subquery instead of 2
> subqueries. How else I can do this?
>
> thanks so much,
> nc
>
>
Received on Thu Feb 01 2001 - 16:44:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US