Hello,
I'm using an SQL string to populate a multiselect listbox with dates. It's something like this:
...and I want to sort by Day of Week in order (i.e. Mon, Tue, Wed, Thu, Fri, Sat). So I tried this:
...and I don't get any results. Any suggestions?
Thank you
I'm using an SQL string to populate a multiselect listbox with dates. It's something like this:
Code:
select job_date, format(job_date, "ddd") as Day from job_list;
...and I want to sort by Day of Week in order (i.e. Mon, Tue, Wed, Thu, Fri, Sat). So I tried this:
Code:
select job_date, format(job_date, "ddd") as Day from job_list order by format(job_date, "w");
...and I don't get any results. Any suggestions?
Thank you