so_damn_insane ([info]so_damn_insane) rakstīja,
@ 2011-12-01 07:32:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
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


(Lasīt komentārus)

Nopūsties:

No:
Lietotājvārds:
Parole:
Ievadi te 'qws' (liidzeklis pret spambotiem):
Temats:
Tematā HTML ir aizliegts
  
Ziņa:
Neesi iežurnalējies. Iežurnalēties?