Hi,
SELECT emp_name, emp_age, income FROM employees
WHERE emp_age>30
ORDER BY income DESC
LIMIT 5;
emp_age is not a indexed column.
so the question is LIMIT executed first on DB and later Where Condition is applied First on Non-Index Columns added
https://www.educba.com/mysql-offset/
Also It is possible to ADD offset with WHERE condition like below
SELECT emp_name, emp_age, income FROM employees
WHERE emp_age>30
ORDER BY income DESC
LIMIT 5,10;
Thanks