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 -> Query help!!

Query help!!

From: Scott <sivaraman55_at_gmail.com>
Date: 23 Oct 2005 20:48:52 -0700
Message-ID: <1130125732.777489.98430@o13g2000cwo.googlegroups.com>


I have two tables. Table1 and Table2.

Table 1 has coloumns
colID
colSt -- The values are A, B, C and D.
colDate
ColMachinery

Table 2 has columns
colID
colType - W, X, Y or Z
colInventory

 The input to the query is Date Range(colDate of Table 1). ColID is the primary and foreign key for the tables.
Now I want a query that will list the output something like this..

Date Total of colSt Total of colSt Total of TOtal of Total of Total of

       with Status A with Status B type W type X type Y type Z

Can someone help?

Thanks in advance,
Scotty. Received on Sun Oct 23 2005 - 22:48:52 CDT

Original text of this message

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