Quantcast
Viewing all articles
Browse latest Browse all 2504

Problems selecting multiple ID columns (1 Comment)

Topic by Mike

When running querycsv(c#):

1.  "SELECT Incident.ID, Incident.category.ID FROM Incident ORDER BY Incident.ID DESC", it works but the returned data is sorted by category.id instead of incident.id

 

2. "SELECT Incident.ID, Incident.StatusWithType.Status.ID FROM Incident order by Incident.ID DESC", throws error "Column 'ID' in order clause is ambiguous"

 

Even in Connect Object Explorer if you try to select 2 ID columns, the results only return 1 column.

 

Is there a specific way to select multiple ID columns?


Viewing all articles
Browse latest Browse all 2504

Trending Articles