dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Selecting from DataSet - sqlserver-datamining

This is a discussion on Selecting from DataSet - sqlserver-datamining ; In Visual Studio, I have my DataSet filled with several static tables (they might get changed weekly, but that's about it). With one of these tables in the DataSet, is it possible to select distinct items? Ex: I want to ...


Home > Database Forum > Data Warehousing > sqlserver-datamining > Selecting from DataSet

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-11-2008, 04:14 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Selecting from DataSet

In Visual Studio, I have my DataSet filled with several static tables (they
might get changed weekly, but that's about it).

With one of these tables in the DataSet, is it possible to select distinct
items?

Ex:
I want to fill a tree with a list of job titles, and the Employee table is
filled already with all employee records. Is there a way I could do something
like this below?

DataRow[] drTitles = DataSet1.Tables["Employees"].Select("Distinct JobTitle");

(the line above will fail with "Syntax error: Missing operand after
'JOBTITLE' operator.")

I'm double posting this question. I think it is more relivant here, but this
board does not see much activity, so the question will be posted elsewhere as
well.
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 08:43 AM.