Produce a list of salaries of all the staff, arranged in descending order of salary
SELECT staffNo, firstName, lastName, salary
FROM Staff
ORDER BY Salary DESC;
The "major sort key" determines the overall order of the table.
If the values of the major sort key are unique, there is no need for additional keys.
If a second element appears in the ORDER BY clause, it is called a minor sort key.
SELECT propertyNo, type, rooms, rent
FROM PropertyForRent
ORDER BY type, rent ASC;