In this section, you’ve learned a few new elements you can add to your queries, <span class = "code">GROUP BY</span> and <span class = "code">ORDER BY</span>, on top of the <span class = "code">SELECT</span>, <span class = "code">FROM</span> and <span class = "code">WHERE</span> that were introduced earlier. The order of these elements needs to be correct for a query to run. The order in which you write your query should always be as follows:
- <span class = "code">SELECT</span>
- <span class = "code">FROM</span>
- <span class = "code">WHERE</span>
- <span class = "code">GROUP BY</span>
- <span class = "code">ORDER BY</span>