Hello,
I'd like to have a SELECT statement which also creates a calculated column based on the value of a field of the preceding record.
Example:
Column1 Column2 Calc1
1 North -
2 West North
3 South West
4 East South
5 Other East
...
I know there is a function for that in Oracle called LAG/LEAD ( but it doesn't seem to exist in Access or PostgreSQL.
Any clue?
I'd like to have a SELECT statement which also creates a calculated column based on the value of a field of the preceding record.
Example:
Column1 Column2 Calc1
1 North -
2 West North
3 South West
4 East South
5 Other East
...
I know there is a function for that in Oracle called LAG/LEAD ( but it doesn't seem to exist in Access or PostgreSQL.
Any clue?