Query is ok
In table mp_racun_roba (down in query) i have column name kolicina
1) I need to multiply this three column with kolicina
2) In sum column if have value with thousand separator not sum (example 1,644.00) just jump that value
- SELECT SUM(isnull(cast(REPLACE(TRY_CONVERT(float,TRY_CONVERT(float,iznos_bpdv),1), '#,0.00','')AS decimal(10,2)),0.00)) as UKUPNObpdv,
- SUM(isnull(cast(REPLACE(TRY_CONVERT(float,TRY_CONVERT(float,pdv),1), '#,0.00','')AS decimal(10,2)),0.00)) as UKUPNOpdv,
- SUM(isnull(cast(REPLACE(TRY_CONVERT(float,TRY_CONVERT(float,iznos_sa_pdv),1), '#,0.00','')AS decimal(10,2)),0.00)) as UKUPNOsapdv
- from mp_racun_roba
- where tip_robe='Roba (Generalno)' and id_fakture='34'

Rafnas T PPosted Jun 2, 2018, 3:05 AM
Goran BibicPosted Jun 2, 2018, 4:06 AM
Rafnas T P
Goran BibicPosted Jun 1, 2018, 12:53 PM
Packiaraj SanthiyaguPosted Jun 1, 2018, 7:45 AM