hi all,
i'm using postgresql 8.0.0 and i want to use the lead and lag window functions but it says "function doesn't exist when i run the following command
select lag(selling_rat e,1,'0') from currency
and i again run the following command
select selling_rate, lead(selling_ra te) over ( order by selling_rate asc) from currency
then it throws the error "syntax error at or near "over" at character 41"
is there any other way to use lead or lag.
TIA
i'm using postgresql 8.0.0 and i want to use the lead and lag window functions but it says "function doesn't exist when i run the following command
select lag(selling_rat e,1,'0') from currency
and i again run the following command
select selling_rate, lead(selling_ra te) over ( order by selling_rate asc) from currency
then it throws the error "syntax error at or near "over" at character 41"
is there any other way to use lead or lag.
TIA
Comment