DataSet

You can use the .Select method of the DataTable to get a list of matching rows (a filter). You can also use a DataView to do the same filtering.

Unfortunately, DISTINCT is not a keyword thats supported. The filtering represents mostly what youd see in a WHERE clause such as "col = abc and col2 < 5". Any type of duplicate matching will have to be done manually.

You can also use the .Compute method to get aggregates, like MIN, MAX, SUM, etc. but that still wont help you get distinct rows.

-nerseus
 
On planetsourcecode.com is a library called Sql-Engine.

Thisone can perform SQL-queries on a dataset and returns a DataTable.
 
Back
Top