Naveen,

 

J         J         J

 

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: [EMAIL PROTECTED]


From: Naveen Nahata [mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]

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.

Reply via email to