We’re not far away from learning all possible SQL keywords. I hope you remember all steps of they execution by heart. Let’s go over them to make sure it’s the case:
FROMis checked first, SQL engine will know from which table to read records firstJOINgoes second. The records fromJOINtables are also read and joined with our main tableWHEREcomes next – we filter the records from the final big tableGROUP BYsplits final big table into smaller groupsSELECTis processed next, columns and results of all functions are calculatedDISTINCT...