on 04-20-2016 9:48 PM
Hi guys
I need to have a case statement for a new filter I need to have in blx as below:
case when (fact_table.event_key in (4,5)) then 'Current' else 'old'
I get an error message saying 'the where clause result type is not boolean'
any idea why?
cheers
Hi,
You missed the End Key word at the end of script please use below..
case when (fact_table.event_key in (4,5)) then 'Current' else 'old' end
Like e.g. CASE WHEN "EMPLOYEE"."SAL" IN(100,200) Then 500 ELSE 200 END
Regards
Niraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.