crazysert Posted June 30, 2015 Share Posted June 30, 2015 Merhaba , amsde sqlite3 ile bir proje hazırlıyorum kod bilgim çok az var pro değilim yani :) buradaki birçok çalışmayı inceledim ama incelediklerim arasında sqldeki bir sütundaki verilerin hepsini çağırıp toplayan olmamış herhalde (yani toplama işlemi yüzdesini alma gibi) yada ben görmedim :) bununla ilgili yardım edebilecek bir hayır sever var mıdır acaba ? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 30, 2015 Share Posted June 30, 2015 SELECT SUM(sutun_adi) FROM tablo_adi bu komut sütun toplamını verecektir. Quote Link to comment Share on other sites More sharing options...
crazysert Posted June 30, 2015 Author Share Posted June 30, 2015 Çok teşekkür ederim Kintaro sütün toplamını o komut veriyor peki yaptırmak istediğim mesela excelde =a1*b1 onun alt satırında =a2*a3 işlemini yaptığımızda o iki hücredeki verinin çarpım sonucunu veriyor. bu işlemi benim hazırlamış olduğum treelistteki sql den çekmiş olduğum tablodaki veriler üzerinde nasıl işlem yaptırabilirim ? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted June 30, 2015 Editor Share Posted June 30, 2015 (edited) select ( (kolon1 * kolon2) + kolon3 ) / kolon4 as 'TOPLAM' from tabloismi gibi kullanabilirsiniz. Parantez içleri öncelikli oldugu için öncelikli olaran parantezler kullanmalısınız. Edited June 30, 2015 by pairs Quote Link to comment Share on other sites More sharing options...
crazysert Posted June 30, 2015 Author Share Posted June 30, 2015 Çok teşekkür ediyorum tam da istediğim buydu Allah sizi bu forumdan eksik etmesin :) sağlıcakla.. 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.