Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

OleDbAdapter nested select queries

$
0
0

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


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>