How to limit SQL query to a number in a row (id-column)? : <p>How do I limit SQL data output to the "id" number? I want to fetch the up to the id of number 10 which is 14 rows. How would I do that? I tried with a sub query but I read that sub-queries are not supported after the LIMIT keyword.</p>

<p>The picture shows what should be outputted in the SQL query.</p>

<p><a href="https://i.stack.imgur.com/idIQx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/idIQx.png" alt="enter image description here"></a></p>
