Goran Bibic

Goran Bibic

  • 454
  • 2.9k
  • 178k

Thousand decimal point problem

Dec 29 2018 1:54 AM
My code is ok, but if have values from 0 to 999 its ok
 
Exmpl two values 500.00 and 80.00 result is 580.00
That is ok
 
Exmp if have two values   1,000.00 and 100.00 result is 100.00
 
Some help?
  1. select kupac as 'Kupac',
  2. SUM(TRY_CONVERT(Decimal(10, 2), ISNULL(NULLIF(iznos_sa_pdv, ''), '0'))) AS 'UKUPNO'   
  3. from(select kupac, iznos_sa_pdv from mp_faktura_lista union all select kupac, iznos_sa_pdv from mp_racun_lista) as alltables  
  4. group by kupac 
 

Answers (2)