I have a table that contains days and times, the column of the day can contain any of the seven days entered into it, and they are configured for the varchar data type. Since this table contains the reservation time for the client, I want to select all the days from the table where the identifier matches, and I want to sort from Mondays to Sunday. I was hoping that I could add something to this query to manually select the order of returning results as follows:
select * from requirements where Family_ID = 1 ORDER BY Day, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
This, of course, does not work, but I just wanted to show what I'm trying to achieve. The client does not necessarily require help every day, I just want to show the days when they are booked.
Sorting by DESC and ASC does not help with the days of the week, I would appreciate any advice on how to achieve this.
Thanks.
sql-server-2008 sql-order-by
deucalion0
source share