Hi all,
i'm writing a sample program to read values of some fields in the table. i wrote a snippet as below -
SQLStr=L"SELECT STATE_NAME, OBJECTID FROM cities GROUP BY STATE_NAME ORDER BY STATE_NAME";
fgdbError err= geodatabase.ExecuteSQL(SQLStr,true,eRows);
while(eRows.Next(CurrRow) == S_OK)
{
CurrRow.GetOID(Oid);
CurrRow.GetString(L"STATE_NAME",value);
}
when the ExecuteSQL method is called it returned the error code -2147220985 which means FGDB_E_INVALID_SQL!!
the documentaion tells that group by clause is supported.
Can someone please help me resolve the issue??
Thanks in advance,
Kishore.