I have a part of code, which returns non distinct values.
Is there anyway, I could use a distinct function to the same to get distinct values?
Code:
public static Recordset queryTestDirector(string projectName, string query)
{
Recordset result = null;
/*Connect to Test director and pull down all the currently listed QC numbers*/
TDConnection tdConnection;
tdConnection = new TDAPIOLELib.TDConnection();
tdConnection.InitConnection("http://***/qcbin/", "ABC", "");
tdConnection.ConnectProject(projectName, "qc_manager", "");
Command cmd;
cmd = tdConnection.Command as Command;
String qcIDQuery = query;
cmd.CommandText = qcIDQuery;
result = cmd.Execute() as Recordset;
tdConnection.Disconnect();
return result;
}
The problem is the result returned gives values: A,A,A,A,B,C,D
I want only A,B,C,D
Please suggest.