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

Home -> Community -> Usenet -> c.d.o.server -> SQL

SQL

From: Patrick Lanphier <p-lanphier_at_psu.edu>
Date: Fri, 19 Jun 1998 11:47:05 -0400
Message-ID: <6me1fd$1f6q@r02n01.cac.psu.edu>


Is it possible to join these two SQL statements without creating a cartesian join?

SELECT fund, SUM(ACTUAL_HRS)

        FROM labor_to_date
        GROUP BY fund;

SELECT  fund, SUM(hours)
        FROM timecard
        WHERE timecard.month = 6
        GROUP BY fund;

"Contracts" is a table you can use which lists all valid "fund" numbers.

Patrick Lanphier Received on Fri Jun 19 1998 - 10:47:05 CDT

Original text of this message

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