Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL HELP.....
De-aggregating aggregated values is an endeavour comparable to putting the toothpaste back into the tube. You can't.
If you have the detail somewhere, read about MINUS and INTERSECT, or possibly NOT EXISTS.
>----- ------- Original Message ------- -----
>From: "Cabansay, Yoyong" <lbcabansay_at_timex.com>
>To: Multiple recipients of list ORACLE-L
><ORACLE-L_at_fatcity.com>
>Sent: Thu, 28 Aug 2003 02:15:02
>
>I have a table with the following columns:
>
>- item
>
>- carton_number --->(min)
>
>- carton_number --->(max)
>
>- qty --->(sum)
>
>- weight --->(sum)
>
>=20
>
>Item A has qty of 4515 and present in cartons 1 to
>1129
>
>Item B has qty of 7255 and present in cartons 1 to
>1129
>
>Item C has qty of 400 and present in cartons 1 to
>600 (???)
>
>=20
>
>I want to find which cartons from 1 to 600 does not
>contain Item C.
>
>=20
>
>Can you give me a sql/plsql script to do this.=20
>
>=20
>
>Thanks a lot,
>
>=20
>
>Yoyong Cabansay
>
>Email: lbcabansay_at_timex.com
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroult INET: sfaroult_at_oriolecorp.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Aug 28 2003 - 05:49:27 CDT
![]() |
![]() |