i am running this query
select lead(id) from tablename
group by station
order by start_time desc;
and i get this error. the idea is to get the lead id number if i sort the view by start_time/grouped by station...
can someone help me with the correct query.