On 1/11/17, Bart Smissaert <[email protected]> wrote:
>
> The result is that the output is descending on DOB.
> I expected and preferred if the output was ascending on rowid.
If you omit the ORDER BY clause, then the SQL database engine (*any*
engine, not just SQLite) is free to return the rows in whatever random
order it chooses. And it does not need to explain itself when it
does. :-)
If you expect and/or prefer the output to be in order of ascending
rowid, then add
ORDER BY rowid ASC
to the end of the query.
--
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users