Re: ORA-00936: Missing Expression Error

From: Matt B. <mcb_at_fightspam.sd.znet.com>
Date: 2000/06/28
Message-ID: <sll8b4dsjev101_at_corp.supernews.com>#1/1


"Arun Solleti" <asolleti_at_csee.usf.edu> wrote in message news:395A584F.5B2CD77E_at_csee.usf.edu...
> I am trying to create a view with outer join condition using the
> following code
>
> CREATE VIEW "VW_EQUIP_SEARCH1" AS select
> EQUIPITEM.ITEMID, EQUIPITEM.RETURNDT, EQUIPITEM.STATUS,
> EQUIPMENT.CATEGORY, FEATURE.DESCRIPTION
> from EQUIPITEM, EQUIPMENT, FEATURE where
> EquipItem.EquipID = Equipment.EquipID and EquipItem.ItemID =*
> Feature.ItemID;
>
> The last condition which specifies outer join is EquipItem.ItemID =*
> Feature.ItemID
>
>
> But when i use this statement it gives me an error
> ERROR at line 5:
> ORA-00936: missing expression
>
>
> Suggests are appreciated
>
> Arun

The syntax for an outer join in Oracle is (+).

select...
from tablea, tableb
where tablea.code = tableb.code (+)
and...

(Put the "(+)" on the side of the "=" where you expect the null/missing row to occur.)

-Matt Received on Wed Jun 28 2000 - 00:00:00 CEST

Original text of this message