G
Guest
I have a straightforward table that is populated each day. I would like to
write a simple SQL query that calculates the daily change for one of the
variables.
The table has 3 fields/columns Date, Name & Price.
Date Name Price
21/08 ABC 95
18/08 ABC 80
17/08 ABC 70
16/08 ABC 65
15/08 ABC 50
14/08 ABC 40
11/08 ABC 30
I would like for the output to be:
Date Name Change
21/08 ABC 15
18/08 ABC 10
17/08 ABC 5
16/08 ABC 15
15/08 ABC 10
14/08 ABC 10
11/08 ABC
It is simple the current day's observation minus the previous day's
observation.
I would appreciate any help.
write a simple SQL query that calculates the daily change for one of the
variables.
The table has 3 fields/columns Date, Name & Price.
Date Name Price
21/08 ABC 95
18/08 ABC 80
17/08 ABC 70
16/08 ABC 65
15/08 ABC 50
14/08 ABC 40
11/08 ABC 30
I would like for the output to be:
Date Name Change
21/08 ABC 15
18/08 ABC 10
17/08 ABC 5
16/08 ABC 15
15/08 ABC 10
14/08 ABC 10
11/08 ABC
It is simple the current day's observation minus the previous day's
observation.
I would appreciate any help.