I have the following query which works for me in MSSQL:
SELECT*FROM[PRODUCTION].[dbo].[OFFLOADINGDATA]WHERE[DATEROW]NOTIN(SELECTtop((SELECT count(DATEROW)FROM[PRODUCTION].[dbo].[OFFLOADINGDATA])-2)[DATEROW]FROM[PRODUCTION].[dbo].[OFFLOADINGDATA])
which returns the last 2 rows of my query.
How could I recreate this using OleDbAdapter?
Please bear in mind that the rows cannot be sorted in any other way. The source of the data is an Excel file which I cannot modify.
thanks Callum