Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Multiple recordsets in 1 select
Hi
Just add 'from dual' to your example:
SELECT (SELECT account FROM docs WHERE id=596 and type='sales')
"accSales" ,
(SELECT account FROM docs WHERE id=596 and type='it')
"accIT" ,
(SELECT account FROM docs WHERE id=596 and type='mech')
"accMechanics"
from dual
Thomas
-- _______________________________________________________________________ Siemens Switzerland Ltd, Softwarehaus, ES41 Thomas Jegen, Software Engineer Albisriederstrasse 245, CH-8047 Zürich Phone +41 (0)1 495 3438, Fax +41 (0)1 406 5340 mailto:thomas.jegen@siemens.ch, Internet: http://www.siemens.ch/Received on Wed Jun 06 2001 - 05:48:24 CDT