SELECT * FROM O_PLATI_DAUNE
WHERE
LUNA LIKE
CASE
WHEN LUNA = '7' THEN SUMA ='363623.72'
WHEN LUNA = '8' THEN SUMA ='825159.25'
WHEN LUNA = '9' THEN SUMA ='182730.99'
WHEN LUNA = '10' THEN SUMA ='361722.74'
WHEN LUNA = '11' THEN SUMA ='1787574.67'
WHEN LUNA = '12' THEN SUMA ='3605005.68'
ELSE 'N/A'
END
I don't know why it doesn't work, please somebody help me!
Thanks a lot.