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

Home -> Community -> Usenet -> c.d.o.server -> Re: do the same without using union all

Re: do the same without using union all

From: <janik_at_pobox.sk>
Date: 4 May 2006 05:18:01 -0700
Message-ID: <1146745081.126036.233460@j33g2000cwa.googlegroups.com>


SELECT
   TO_DATE(curr_year || '-' || curr_month || '-' || curr_day,'YYYY-MM-DD'),

   CASE WHEN i.lv=1 THEN num1 ELSE num2 END num   FROM mytab,

            (SELECT lv FROM (SELECT LEVEL lv fFROM dual CONNECT BY LEVEL<=2)) i

    ORDER BY 1 Received on Thu May 04 2006 - 07:18:01 CDT

Original text of this message

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