Skip to content
Advertisement

SQL query for subtracting values from columns and add it to same row

or

As you can see, the Menge column is decreasing its value for every row, subtracting the Reserviert value from the previous row.

Can anybody suggest how to write this type of query in SQL Server?

Advertisement

Answer

It Cannot be Done by SQL Only . It must to be done by Code

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement