How to select the given case statement as column
How to select the given case statement as column Question: I want to query the table after giving case statement/ %sql SELECT user_id, user_name, email, CASE WHEN user_name = ‘ruo’ THEN ‘No’ WHEN user_name = ‘ruoman’ THEN ‘Yes’ else ‘Other’ END AS New_Data FROM Pes %sql SELECT user_name from Pes where New_Data = ‘Yes’ –> …
Total answers: 1