For a particular date(as shown in image) where the source is only Android, I want to return the 5th column as true else null using sql
I tried using partition statement to answer the problem, but that seems to give me the same records as rnum
For a particular date(as shown in image) where the source is only Android, I want to return the 5th column as true else null using sql
I tried using partition statement to answer the problem, but that seems to give me the same records as rnum
Try this:
select week_start, user_id, source, rnum, case when [Only android] = 1 then 'true' else null from table_name