Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion questions/aggregates/00041250-fachoursbymonth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ select facid, sum(slots) as "Total Slots"
starttime >= '2012-09-01'
and starttime < '2012-10-01'
group by facid
order by sum(slots);
order by "Total Slots";
|ANSWER|
<p>This is only a minor alteration of our previous example. Remember that aggregation happens after the <c>WHERE</c> clause is evaluated: we thus use the <c>WHERE</c> to restrict the data we aggregate over, and our aggregation only sees data from a single month.</p>
|HINT|
Expand Down