There are at least 2 reasons of above error:
1) bad data type
If
year
field is numeric data type, the query:
select row_number() over (order by id) as Sno,id,title,year,platform,domain,abstract
from NewIEEE
where year='2013'
order by year desc,sno
must be replaced with:
select row_number() over (order by id) as Sno,id,title,year,platform,domain,abstract
from NewIEEE
where year=2013
order by year desc,sno
2)
k
variable is empty (which is inacceptable):
select row_number() over (order by id) as Sno,id,title,year,platform,domain,abstract
from NewIEEE
where year=''
order by year desc,sno