Hi,I have the following code which returns day of week name, position and date and time of surgeries.
SELECT DATENAME(WEEKDAY,OPE_START_TIME) AS DOW, [OPE_ORDER_IN_SESS_ASC] AS POSITION, OPE_START_TIME AS [TIME] FROM table1The data looks like this
How can i group this data so I get the average start time by day of week and position?