Hello
How can you sort the table by day of the week (not asc/desc
) in order of Monday-Sunday?
Table - schedule.
Field - [Day of the week].
The values in the fields correspond to Monday - Sunday, taken from PickList DBGridEh1.
Hello
How can you sort the table by day of the week (not asc/desc
) in order of Monday-Sunday?
Table - schedule.
Field - [Day of the week].
The values in the fields correspond to Monday - Sunday, taken from PickList DBGridEh1.
.. ORDER BY DatePart('w', [День недели], 2);
2 here means the constant vbMonday - start counting from Monday
Source: https://ru.stackoverflow.com/questions/200357/
All Articles