Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 20
Braincode mempunyai hidup yang Normal
Default [ask] Kasus SQL Query

gan, ane mau tanya... semisal ada 2 tabel master-detail seperti dibawah ini



tabel jual





tabel detail_jual







keterangan: kolom tipe bernilai boolean 0 dan 1. nilai 0 adalah untuk tipe pembayaran kredit dan 1 untuk tipe pembayaran tunai



ane ingin menampilkan total pembayaran kredit dan tunai per tahun kira2 kolomnya seperti dibawah ini:







sql syntaxnya gimana ya..? boleh pake oracle, mysql, sql server, access. thanks buat bantuan master2 programmer..



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 02:26 PM.


no new posts