Just see this:
SELECT clientid,clientname,startdate,enddate,age FROM clients
WHERE clientid IN (1,2,3,4,5)
AND CASE WHEN age>10 THEN enddate>'31-05-2013'
END
My question: I want the second condition enddate>’31-05-2013′ only if age > 10
What’s wrong in this query?
1 Answer