What will be the output of the query SELECT column FROM table ORDER BY column DESC LIMIT 7,10;
Reveal answer
Fill a bubble to check yourself
What will be the output of the query SELECT column FROM table ORDER BY column DESC LIMIT 7,10;
Would skip the first 7, and then get you the next ten highest.
not a valid mysql query
Would skip the first 10, and then get you the next 7 highest.
None of the above
The LIMIT clause with two parameters (LIMIT 7,10) means skip the first 7 rows (offset) and return the next 10 rows. Combined with ORDER BY column DESC, this skips the 7 highest values and returns the next 10 highest values.
MySQL's LIMIT offset, count syntax treats the first number as how many rows to skip and the second as how many rows to return afterward, so LIMIT 7,10 skips the first 7 rows of the (descending) result and returns the next 10. It's valid MySQL syntax, so 'not a valid query' doesn't apply, and the offset/count roles aren't reversed as the third option claims.