I am running this query in SQL:
select
--CLAIM_ID,
--sum (paid_amount),
(ROW_NUMBER() OVER (partition by claim_id order BY claim_id) as asdf)
from [FRAUD].[dbo].[MU_GAPA_ADS_CLAIM_ANALYSIS_ALLACCOUNTS]
where (ALTGRP like '48000%') and (svcDAT between '10/01/2016' and '10/01/2016')
Group By claim_id
However, I heep getting the following error:
Msg 156, Level 15, State 1, Line 4 Incorrect syntax near the keyword 'as'.
Can someone please help me understand what is going on and how I can solve it?
Thank you.