Troubleshooting
Problem
In IBM Rational ClearQuest, a query with an order by clause causes error when opened to add items to a reference list.
Symptom
If a query with an ORDER BY ASC or DESC clause is used to add items to a reference list, an error occurs. When a browse adds ,T1.id ASC to the query SQL syntax, this error occurs:
---------------------------
IBM Rational ClearQuest
---------------------------
ERROR! CRMDB0001E SQLExecDirect: RETCODE=-1, State=37000, Native Error=169
[Microsoft][ODBC SQL Server Driver][SQL Server]A column has been
specified more than once in the order by list. Columns in the order by list must be unique.
SQL statement='select distinct T1.dbid,T1.id,T1.headline,T2.name,T1.id from request T1,statedef
T2 where T1.state = T2.id and (T1.dbid ?? 0) order by T1.id ASC,T1.id ASC'
---------------------------
OK
---------------------------
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
11 October 2018
UID
swg21651689