83. Weekend Events Only
EasyDates & Timestrftimeweekday filter
A row falls on a weekend when its weekday number is Saturday (6) or Sunday (0) — exactly the two values strftime('%w', date) returns for the weekend.
Task: return id, event_date, and wday (the '%w' value) for only the events that fall on a Saturday or Sunday. Order by event_date.
Output columns, in order: id, event_date, wday.
Tables
Loading schema…
Expected outputrows must come back in this order
Computing expected output…
This is the result for the example data above. On Submit your query is graded against this example plus 4 hidden edge cases — 5test cases in all. A sloppy query that only fits the example won't pass.
SQL· SQLite · runs in your browser
⌘/Ctrl+↵ run · ⇧⌘/Ctrl+↵ submit
Run a query to see its output here.