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

Home -> Community -> Usenet -> c.d.o.misc -> Complex Query

Complex Query

From: Michael Hill <hillmw_at_ram.lmtas.lmco.com>
Date: Thu, 20 Mar 2003 11:11:02 -0600
Message-ID: <3E79F626.85E3CFE@ram.lmtas.lmco.com>


I have a couple tables, i.e

table one
fielda
fieldb
fieldc

table two
fielda
fieldd

I need to be able to count the number of 'd's in table two and display along with the query from table one, something like:

select fielda,fieldb,fieldc, sum(fieldd) from one a, two b where a.fielda=b.fielda

Anyone know how I'd so this? Should the sum(fieldd) be a view? Received on Thu Mar 20 2003 - 11:11:02 CST

Original text of this message

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