Hi Guys,
I have a little bit of an odd issue.
When I run this SQL:
with ID_Table as (
select row_number() over (order By SS_ID) As row_id,
ss_id
from slide_show )
select t0.*
from ID_Table as t1
inner Join slide_show as t0 on t1.ss_id = t0.ss_id
where t1.row_id between 0 and 1
order by t1.row_id asc;
in SQL Express, it runs and returns the first row as it should (similar to the Limit 0,1 in MySQL). However, when I run this in delphi via the TADOQuery object, I receive the error in the title. I am guessing the ADO object is doing something along the way but I don't understand what.
Note: This is the exact SQL I am passing into the ADO object.
Does anyone have any ideas?