UPDATE tblbarang SET
harga_beli =
CAST(NULLIF([harga_jual],'') AS decimal(13,0)) - CAST(NULLIF([rabat_nominal],'') AS decimal(13,0))
WHERE harga_beli=harga_jual
harga_beli =
CAST(NULLIF([harga_jual],'') AS decimal(13,0)) - CAST(NULLIF([rabat_nominal],'') AS decimal(13,0))
WHERE harga_beli=harga_jual
Cara menjumlahkan nilai varchar ke decimal query MSSQL
Reviewed by Syawaluddin Amin, S.Kom
on
Desember 21, 2015
Rating:
Tidak ada komentar: