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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL HELP.....

RE: SQL HELP.....

From: Cabansay, Yoyong <lbcabansay_at_timex.com>
Date: Thu, 28 Aug 2003 19:04:26 -0800
Message-ID: <F001.005CDD4E.20030828190426@fatcity.com>


Naveen,  

:-) :-) :-)  

You are right...the table is structured that way. I want to find at which point in the carton numbers from 1 to 600 does have Item C. The final output would be like:

Item C:

            Carton#            Item                  qty
weight
            1-48                 C                      46
20
            281-310            C                      20
14

And so on....  

Thanks in advance......  

Yoyong Cabansay

Email: lbcabansay_at_timex.com


Sent: Thursday, August 28, 2003 6:59 PM
To: Multiple recipients of list ORACLE-L  

"Open the cartons and see!" ;-)  

By the way can you reframe your question? Do you mean that you table stores data as follows:  

item carton_no qty weight

A 1 4 10

A 2 4 10

B 1 5 12

B 3 5 12

C 1 3 5  

and so on?  

Regards
Naveen

	-----Original Message-----
	From: Cabansay, Yoyong [mailto:lbcabansay_at_timex.com]
	Sent: Thursday, August 28, 2003 3:45 PM
	To: Multiple recipients of list ORACLE-L
	Subject: SQL HELP.....

	I have a table with the following columns:


- item

- carton_number --->(min)

- carton_number --->(max)

- qty --->(sum)

- weight --->(sum)
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 (???) I want to find which cartons from 1 to 600 does not contain Item
C.          

        Can you give me a sql/plsql script to do this.          

        Thanks a lot,          

        Yoyong Cabansay

        Email: lbcabansay_at_timex.com

DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Cabansay, Yoyong
  INET: lbcabansay_at_timex.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 - 22:04:26 CDT

Original text of this message

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