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 -> Re: I need some help with this query

Re: I need some help with this query

From: Otto von Stirlitz <ivg_at_beer.com>
Date: Mon, 1 Nov 1999 18:36:54 +0200
Message-ID: <381dc124@athene.hdm-stuttgart.de>


>select sv.name, rv.store_id, sum(amount + freight) Total from
>report_stores_view sv, REPORT_TRANSACTION_VIEW rv
>where TRANSACTION_DATE >= 936158400 and TRANSACTION_DATE <= 938664000
>and transaction_type != '3'

and sv.store_id = rv.store_id

>and rv.STORE_ID =
>(select store_id from STORE SS where SS.KEY_STORE_SEQID =
>(select V.KEY_STORE_SEQID from REPORT_STORES_VIEW V where NAME =
>'store_xyz'))
>group by name, rv.store_id;
Received on Mon Nov 01 1999 - 10:36:54 CST

Original text of this message

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