It will order first, then get the first 20. A database will also process anything in the WHERE
clause before ORDER BY
.
More Related Contents:
- MySQL offset infinite rows
- Ordering by the order of values in a SQL IN() clause
- Ordering by specific field value first
- MySQL “Group By” and “Order By”
- Using union and order by clause in mysql
- SQL order string as number
- MySQL order by “best match”
- Order by COUNT per value
- MySQL/MariaDB – order by inside subquery
- Mysql: Order by like?
- Sort the rows according to the order specified in WHERE IN clause
- ORDER BY alphabet first then follow by number
- MYSQL Select One Random record from each Category
- SELECTING with multiple WHERE conditions on same column
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Can a table field contain a hyphen?
- OUTPUT Clause in MySQL
- Search all columns of a table using a single where condition with single keyword in mysql
- What does SQL clause “GROUP BY 1” mean?
- Sorting by date & time in descending order?
- passing LIMIT as parameters to MySQL sproc
- Case statement in MySQL
- MySQL: Inner join vs Where [duplicate]
- Syntax error when using except in a query
- Selecting from two tables with inner join and limit [duplicate]
- Why the order of evaluation for expressions involving user variables is undefined?
- How to select data where a field has a min value in MySQL?
- How to SELECT by MAX(date)?
- get a recursive parent list
- SQL query with avg and group by