-
What is an
ORDER BYand what is it used for? -
What types of
ORDER BYsorting exist? -
What is the
LIMIT? -
What is the
OFFSET? -
Give an example of how
LIMITandOFFSETcan be used.
- Write an sql script that will pick up all users and sort them by id and creation time (descending sort), the script should pick up only 5 users. Table schema:
user table
________________________________
| id | email | created_at | name |