I'm teaching myself SQL (through learning MS Access 2003; Resource: Microsoft Access 2003 Your Visual Blueprint for Creating and Maintaining Real-world Databases book [Great book! suggested to me by Database Admin])
I've got a basic question about the correct way to structure a SQl query:
Example: single query of a single field using both Sort and Criteria.
I know that the SQL statement should look like this:
Select tblName.Field
FROM tblName
WHERE (((tblName.Field) = "criteria"))
ORDER BY tblName.Field DESC; (I know that ";" isn't alwasy neccessary)
My question is why does "ORDER BY" have to go last in this statement, even though in Design View Sort comes before Criteria?
I've got a basic question about the correct way to structure a SQl query:
Example: single query of a single field using both Sort and Criteria.
I know that the SQL statement should look like this:
Select tblName.Field
FROM tblName
WHERE (((tblName.Field) = "criteria"))
ORDER BY tblName.Field DESC; (I know that ";" isn't alwasy neccessary)
My question is why does "ORDER BY" have to go last in this statement, even though in Design View Sort comes before Criteria?
