Good day (=
Say I have the ff table structure:
[tt]
+--------+---------+--------+
| c_name | c_price | c_date |
+--------+---------+--------+
[/tt]
Now I want to compute the difference between the latest entry of [c_price] minus the second to the latest entry of [c_price]
Would it be possible to compute for the difference using ONE sql statement. Right now I'm using two
Say I have the ff table structure:
[tt]
+--------+---------+--------+
| c_name | c_price | c_date |
+--------+---------+--------+
[/tt]
Now I want to compute the difference between the latest entry of [c_price] minus the second to the latest entry of [c_price]
Would it be possible to compute for the difference using ONE sql statement. Right now I'm using two