Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COOk just tried that, worked well thank you! but it resulted not sorted right. it was listing friday 9-noon, friday 1-4pm, monday 1-4pm, monday 9-noon, thursday 1-4pm. how can i list it out as I wrote it up there? If its not possible to sort just like that, can i at least result out in order of days of the week so mondays are first and so on? Thanks!
      singulars
    2. COIf you want a guaranteed sort, then you need to add a "sort by" clause explicitly. Which means your select needs to have a field you can sort on. I've added the "min(date)" in my answer as an example. But it is not enough actually (because for the same date, you will also want to make sure the time slots are in order. If the time slots have been added chronologically to the table (meaning the id are increasing chronologically), you could use "min(id) as min_id", and "sort by min_id asc" .
      singulars
    3. COAdditionnaly, while I don't know your problem domain, it seems querying day of the week day alone is not enough because it means Monday next week for a given time slot will get bundled with Monday 2 weeks from now on the same time slot, which I assume is not what you want. So instead, you'll need to query both date and day for a given timestamp and group on that. Sorting based on time slot will be tricky because you'll need to parse the time column, you should try to change your db schema to make have a sortable time_slot definition (perhaps give time slots incremented ids).
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload