To sort data in SQL, you can use the ORDER BY clause, followed by the name of the column you want to sort by.

By default, the ORDER BY clause sorts data in ascending order.

To sort data in descending order, you can use the DESC keyword.

You can sort data by multiple columns by listing them in the ORDER BY clause, separated by commas.

To filter data in SQL, you can use the WHERE clause, followed by a filtering condition

You can use comparison operators like =, <, >, <=, and >= in the WHERE clause

You can also use logical operators like AND, OR, and NOT to combine multiple conditions in the WHERE clause

The ORDER BY and WHERE condition can be used together in a SQL statement.