Our team has sat on this for a while and struggling to understand what is going. When ordering by created_at and all the created_ats are the same for the records we see the same record appearing as the last record, regardless of the offset.
Please can someone explain how this is possible? I get that there is an issue with the created_ats all being identical but then surely we would see inconsistent results.
See screenshots attached 1st Query
SELECT * FROM order_supplier_invoices
WHERE supplier_invoice_id = 20340
ORDER BY created_at DESC
LIMIT 10 OFFSET 10;
2nd Query
SELECT * FROM order_supplier_invoices
WHERE supplier_invoice_id = 20340
ORDER BY created_at DESC
LIMIT 10 OFFSET 0;
The record with ID: 101810 appears at the bottom of both queries. One thing we did notice is that when we put a select distinct or instead ordered by the id it gave us expected results

