Anarchosa Posted June 22, 2021 Share Posted June 22, 2021 Mesela 1 Ürün Aldım Bunun Fiyatı 10 TL Bu Üründen 2'den Fazla Alırnırsa Fiyat 9 TL Düşmesini İstiyorum. Mantık Olarak Sql Bunu Arka Tarafa Nasıl Gönderme Yapabilirim ? Ürün Fiyatı Arka Tarafa 10 TL Olarak Gidecek 9 TL Olarak Gitmeyecek Nasıl Bir Mantık Geliştirilmeli ? Quote Link to comment Share on other sites More sharing options...
winvistafiko Posted June 22, 2021 Share Posted June 22, 2021 (edited) SELECT CASE WHEN Miktar>1 THEN 9 ELSE 10 END AS Fiyat gibi yapılabilir en basit şekilde Edited June 22, 2021 by winvistafiko Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 1, 2021 Editor Share Posted July 1, 2021 Aslında arkadaşın istediği oransal bir hesaplama sanki. İskonto oranı belirleyip ona göre iskonto uygulayacak. @KintaRo yardımcı olabilir bu konuda. 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.