Anarchosa Posted June 19, 2022 Share Posted June 19, 2022 (edited) Daha Önce Mysql Kodumdu Ancak Sql Gerektiği İçin Nasıl Çevirebilirim ? CONCAT(FORMAT(sum nasıl kullanabilirim Sql Sorgumda hata alıyorum yardımcı olabilirmisiniz? select sk.id,sk.ad,CONCAT(FORMAT(sum(d.yon*d.adet_miktar) ,3,'tr_TR')) as Miktar,CONCAT('₺',FORMAT( sum(ISNULL(d.tutar_satir,0)) ,2,'tr_TR'))as Tutar from Temp.dbo.temp_belge_detay d inner join stok s on s.id=d.stok_id inner join stok_grup sk on sk.id= s.stok_grup_id where d.tarih between '@bastar' and '@bittar' and d.tnm_lokasyon_id=@lokasyon group by sk.id, sk.ad Msg 189, Level 15, State 1, Line 1 The concat function requires 2 to 254 arguments. Edited June 19, 2022 by Anarchosa Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.