I have a database where ORDER is very important. In 3 different database browsers ORDER BY works fine. Cut and paste the SQL to RB 2012 r2 and the order of the records is wrong. It doesn’t make any sense to me. Anyone have a clue what could be happening?
The code is pretty simple
SELECT * FROM [FF_NotEnoughCourses]
ORDER BY aa_school_code, aa_major_code, aa_student_id, aa_sg_last_update DESC;
Even if I move the ORDER BY to a view, it works in the browser but not in RB
It works fine on every computer I’ve tested on except this one. So I compiled the code and it works fine. very strange.
The first 3 are Integers and the last one in the Order by is a date in SQL format. It’s the first one that goes wonky I get 121111111222232222
[quote=13275:@Jym Morton]REALSqlite
[/quote]
Not sure which you’re referring to since we dont have one named that - REALSQLDatabase or SQLiteDatabase ?
It makes a difference
But I cannot imagine how it would affect the ordering