Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Query question
Hi!!
I have the next query:
SELECT COMPANY, ITEM,
OEBASE.CUR_PRICE_01
FROM OEBASE
WHERE OEBASE.COMPANY IN (2000,2001,2002) AND OEBASE.BASE_NAME IN ('BASE-OCJ', 'BASE-OSI','BASE-OCR')
This returns for each item three lines
2000 0010041 12.34 2001 0010041 12.74 2002 0010041 11.99
I want one row per item, how can I do that?
0010041 12.34 12.74 11.99
Put the price of each company on three different fields
Thanks!!
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Teresita Castro
INET: Teresita.Castro_at_s-martmx.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 Wed Oct 15 2003 - 20:54:25 CDT