so_damn_insane's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Thursday, December 1st, 2011

    Time Event
    7:32a
    atjautības uzdevums
    Šādi atgriež 1 rindu

    AND greatest (
    case when sse.date_from is null then to_date('2011.10.01','yyyy.mm.dd') else null end
    --,nvl(sse.date_from,to_date('2011.10.01','yyyy.mm.dd'))
    ,trunc(usv.date_from,'MM')
    ,to_date('2011.10.01','yyyy.mm.dd')
    ) <= vgl.gp_from

    Šādi atgriež 0 rindas

    AND greatest (
    --case when sse.date_from is null then to_date('2011.10.01','yyyy.mm.dd') else null end
    nvl(sse.date_from,to_date('2011.10.01','yyyy.mm.dd'))
    ,trunc(usv.date_from,'MM')
    ,to_date('2011.10.01','yyyy.mm.dd')
    ) <= vgl.gp_from

    Edit: Arī šis atgriež 1 rindiņu

    AND greatest (
    case when sse.date_from is null then to_date('2011.10.01','yyyy.mm.dd') else sse.date_from end
    --,nvl(sse.date_from,to_date('2011.10.01','yyyy.mm.dd'))
    ,trunc(usv.date_from,'MM')
    ,to_date('2011.10.01','yyyy.mm.dd')
    ) <= vgl.gp_from

    << Previous Day 2011/12/01
    [Calendar]
    Next Day >>

About Sviesta Ciba