Hi all,
this is my input table:
val1 val2 val3 val4
111 5 aa 13:00
111 8 bb 13:00
111 12 cc 8:00
This is the query i used:
..
..
case when ( distinct val4 < time '12:00:00' then 1
else 0 end) as fascia_1,
case when ( distinct val4 >= time '12:00:00' then 1
else 0 end) as fascia_2
What i need to have is a one time evaluation of the variable var4.
How can i do it?
Thanks in advanced
D.
Forums: