The query, say "Query-1":
select THIS_FIELD, THAT_FIELD, THAT_COUNT
from THE_TABLE
order by THIS_FIELD
is running fine when THIS_FIELD
is of type String
. however, "Query-2" below:
select THIS_FIELD, THAT_FIELD, THAT_COUNT, *
from THE_TABLE
order by THIS_FIELD
isGiving me an Ambiguous column name
error to the occurrence of
THIS_FIELD
in the select clause when
THIS_FIELD
is of type String
, and is running OK when THIS_FIELD
here is an integer.
How can i get around this?
TIA.
This is just to make it work. This is non relational.
This will work and order by ordinal position.