Goran Bibic

Goran Bibic

  • 455
  • 2.9k
  • 198k

select value from row-1 MS SQL

Apr 15 2020 1:18 AM
I have simple code
 
  1. select   duguje as 'Duguje',   
  2. potrazuje as 'Potražuje',   
  3. (duguje-potrazuje) as saldo   
  4. from dbo.nalog_knjizenje_stavke  
 Result is
 
 
That is ok, I need to repair my code to be last column 'saldo' next values:
 
saldo(last value) + Duguje - Potrazuje  = need to be result
 
 
Thak you
 

Answers (2)