SELECT Distinct from DataTable, without using SQL
From: Duncan M Gunn (gunnd_at_gaelqualityNOSPAM.co.uk)
Date: 01/27/05
- Next message: Teemu Keiski: "Re: SQLHeper ExecuteNonQuery - returning values"
- Previous message: r: "parent, child, grandchild schema"
- Next in thread: W.G. Ryan eMVP: "Re: SELECT Distinct from DataTable, without using SQL"
- Reply: W.G. Ryan eMVP: "Re: SELECT Distinct from DataTable, without using SQL"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 14:47:50 -0000
Hi,
I have the following query I run using SQL:
Select Distinct col1 as D1, col2 as D2, count(col3) as CountOf
from MyTable
group by col1, col2
order by col1
I need to be able to get the same result without using SQL, by querying an
off-line DataSet.
XPath might be able to do the job, but it's completely new to me and it
appears that the data must be in a pre-defined format (i.e. sorted so that
"preceding-sibling" can be used).
Does anyone know of an XPath query that could do this, or are there methods
on DataSet/Table that can achieve this same result?
Thanks in advance,
Duncan
- Next message: Teemu Keiski: "Re: SQLHeper ExecuteNonQuery - returning values"
- Previous message: r: "parent, child, grandchild schema"
- Next in thread: W.G. Ryan eMVP: "Re: SELECT Distinct from DataTable, without using SQL"
- Reply: W.G. Ryan eMVP: "Re: SELECT Distinct from DataTable, without using SQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|