S
S
shellnet2021-06-23 14:52:24
SQL
shellnet, 2021-06-23 14:52:24

How to calculate difference between values ​​in ORACLE SQL?

The table has a column that has previous prices and current prices. You need to create another column that will put the previous one opposite the current price. And create a second column that will show the price difference. You need to create the last two columns in SQL query.

60d3205f6be25381007003.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shellnet, 2021-06-23
@warlinx

in general, you need to dig towards LEAD / LAG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question