I have a table containing these values:
object particular ----------------------- AD hammer AD stone PD nail PR rocket OBR trophy by using a CASE statement how can I select both AD and PD ? Here's what I did:
object = CASE WHEN 'PD' OR 'AD' THEN 'PD' AND 'AD' ELSE 'OBR' END I know this is wrong, could someone point me in the right direction?
SELECT object, particular from <tablename> where object = 'AD' OR object = 'PD'?objectis AD or PD. Correct?