Hi,
I can think of one work around using window function ROW_NUMBER()
Please try the following:
select YR, ROW_NUMBER() over (partition by YR) as LOCAL_ID, MONTH_NAME, AMOUNT_SOLD from (
select YR, MONTH_NAME, sum(AMOUNT_SOLD) as AMOUNT_SOLD
from _SYS_BIC."efashion/EFASHION_STAR_SCHEMA"
where CITY='Austin'
and YR = 2001
GROUP BY YR, MONTH_NAME ) x;
Regards,
Ravi