Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Jacob
Contributor III
Contributor III

SQL Query (if/wildmatch)

Hi everyone,

I have sql query and i trying to implement qlikview but i getting error.

SQL

(SELECT MIN(Adate) 
FROM xyz A1
WHERE A1.dff=A.nid
P_number IN (58,656,46,49,10) ),'DD-MM-YYYY') NDate

 Expression

if(wildmatch(P_number , 58,656,46,49,10), Date(min(Adate )), DD-MM-YYYY) as NDate

 

anyone can plz help.

Labels (5)
2 Replies
dplr-rn
Partner - Master III
Partner - Master III

what is the error?
quick look at the syntax is wrong. see below delete red and add green
if(wildmatch(P_number , 58,656,46,49,10), Date(min(Adate )), DD-MM-YYYY) )as NDate

Jacob
Contributor III
Contributor III
Author

I am getting expression error

this is expression

if(WildMatch(P_number ,'58','6568','46'),Date(Min(Adate ),'DD-MM-YYYY')) as NDate