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: Oracle Subquery Question

Re: Oracle Subquery Question

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 23 Jan 2001 07:20:46 -0000
Message-ID: <980234511.4535.0.nnrp-12.9e984b29@news.demon.co.uk>

Which version of Oracle ?
I think this syntax became legal only in 8.1

--
Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Practical Oracle 8i:  Building Efficient Databases

Publishers:  Addison-Wesley
See a first review at:
http://www.ixora.com.au/resources/index.htm#practical_8i
More reviews at: http://www.jlcomp.demon.co.uk/book_rev.html



z2124_at_my-deja.com wrote in message <94imcv$mhq$1_at_nnrp1.deja.com>...

>I am having a problem with what should be a simple query. The
>following query is returning a ORA-00936, 'Missing Expression' error
>message.
>
>select a.part_no,
>(SELECT sum(qty_onhand) FROM inventory_part_location_tab b
> WHERE a.part_no = b.part_no)
>from inventory_part_tab a
>
>I am trying to return two fields, part_no and a sum of quantities.
>What am I missing?
>
>TIA
>
>
>Sent via Deja.com
>http://www.deja.com/
Received on Tue Jan 23 2001 - 01:20:46 CST

Original text of this message

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