In mssql, imagine I have a table with the following data...
id name monday tuesday wednesday thursday friday
1 mark null chores null gym swim
2 steve gym null class hockey null
3 mike chores gym null null null
I would like to have a sql statement, that would return the id, name and day column where the value is not null, for example...
id name day value
1 mark tuesday chores
1 mark thursday gym
1 mark friday swim
2 steve monday gym
2 steve wednesday class
2 steve thursday hockey
2 mike monday chores
2 mike tuesday gym
Thank you.