Q1
True / FalseIn MySQL, the ORDER BY clause is used to sort the result set in ascending or descending order.
The ORDER BY clause sorts the result set in ascending (default) or descending order using the ASC or DESC keywords.
Q2
True / FalseBy default, MySQL sorts results in descending order when using the ORDER BY clause.
By default, MySQL sorts results in ascending order when using the ORDER BY clause unless specified otherwise.
Q3
True / FalseMySQL allows sorting by multiple columns in the ORDER BY clause.
You can specify multiple columns to sort by in the ORDER BY clause, and they will be sorted in the order they are listed.
Q4
True / FalseIn MySQL, when using ORDER BY, you can only sort by columns that are part of the SELECT statement.
You can sort by any column in the table, not just those included in the SELECT statement.
Q5
True / FalseMySQL's ORDER BY clause can be used with aggregate functions such as COUNT and SUM.
You can use aggregate functions in the ORDER BY clause to sort the result set based on the result of those functions.
Q6
True / FalseIn MySQL, ORDER BY can be used with the LIMIT clause to fetch the top N rows in a sorted order.
The ORDER BY clause is often used with LIMIT to fetch a specific number of rows from the sorted result set.
Q7
True / FalseMySQL does not support sorting by expressions or calculated columns in the ORDER BY clause.
MySQL allows sorting by expressions or calculated columns within the ORDER BY clause.
Q8
True / FalseWhen sorting by multiple columns in MySQL, the secondary sort column can have a different sort direction than the primary sort column.
You can specify different sort directions for each column when sorting by multiple columns in MySQL.
Q9
True / FalseMySQL uses a stable sort algorithm to maintain the relative order of rows with equal sort keys.
MySQL does not guarantee the use of a stable sort algorithm; rows with equal sort keys may not maintain their relative order.
Q10
True / FalseIn MySQL, using ORDER BY with a BLOB or TEXT column requires specifying the COLLATE clause to define the collation explicitly.
While it may be necessary to specify a collation for correct sorting, it is not a strict requirement. MySQL will use the default collation if one is not explicitly specified.