select query execution order
Keywords used in the query contains six main, and their order was select - from - where - group by - having - order by
The six keywords and the order of execution sql statement written order is not the same, but in the following order to perform
from - the WHERE - the SELECT - Group by - the HAVING - by the Order,
from: from needs which data table to retrieve data
where: The condition for filtering the data in the table
group by: how to filter out data packets above
having: a data packet has to be above the filter conditions
order by: according to what order to view the data returned
Keywords used in the query contains six main, and their order was select - from - where - group by - having - order by
The six keywords and the order of execution sql statement written order is not the same, but in the following order to perform
from - the WHERE - the SELECT - Group by - the HAVING - by the Order,
from: from needs which data table to retrieve data
where: The condition for filtering the data in the table
group by: how to filter out data packets above
having: a data packet has to be above the filter conditions
order by: according to what order to view the data returned