I have an android app I am writing that uses SQLite. I want the entries to be ordered by the date column, but if the dates are the same then I want them to be ordered by the order in which they were added (descending). This is what I have, which works for the first condition… Is there anyway to add the second without adding HH:MM:SS to the date entries?
SELECT * FROM transactions ORDER BY transactionDate DESC
Using ROWID should do it;
Demo here.