With the following SQL statement
SELECT * FROM table ORDER BY fecha DESC
I get these results:
Title | Date |
---|---|
Item A | 2022-02-16 |
Item B | 2022-01-15 |
Item C | 2022-01-30 |
What I need is that this query omits the first result ( Item A ), but the operator does not work for me, LIKE
nor does any event with the date, this is because the results could be any, and the ORDER BY
can change dynamically (it could be ASC
or DESC
) .
That's why I only need to skip the first result or row of that statement SELECT
, and display the results starting from the second row, like so:
Title | Date |
---|---|
Item B | 2022-01-15 |
Item C | 2022-01-30 |
Is this possible? I was reviewing the function MOD
but its use is not very clear to me.
Try LIMIT...
that will return 1000 records starting at the second record (depends on ORDER BY or the index used)
SQL-SERVER