I have a table like this named "Days"
Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
1 1 1 1 0 0 0
1 1 1 1 0 0 0
which has the corresponding details. Where 1 is 'true' and 0 is false.
DaY 1 - sunday
day 2- monday
day 3 - tuesday
day 4- wednesday
day5 - thursday
day 6 - friday
dayy 7- saturday
1 - denotes there is work on the given day
0 - denotes there is no work on the given day.
Given the details above i need to make column to table mapping and need to generate a table like this , where i need to get the data only those which has flag 1
1 Sunday
2 Monday
3 Tuesday
4 Wednesday
for the first record.