Arsip: Select LIMIT PLEASE HELP URGENT........
more 13 years ago
Tyu_alone
Gini ane punya masalah gan.
tb_satu
ID | LOGIN | NILAI
============
1 | 1 | 100
2 | 1 | 200
3 | 1 | 300
4 | 1 | 400
5 | 1 | 500
6 | 1 | 600
7 | 1 | 700
8 | 2 | 100
9 | 2 | 200
10 | 2 | 300
11 | 2 | 400
12 | 2 | 500
tb_dua
LOGIN | BATAS
============
1 | 2
2 | 3
Ane pengennya nampilin kayak gini gan hasilnya
tb_result
ID | LOGIN | NILAI
============
1 | 1 | 100
2 | 1 | 200
8 | 2 | 100
9 | 2 | 200
10 | 2 | 300
Mohon pencerahannya gan.
terima kasih
more 13 years ago
Tyu_alone
[quote:eef09bc531="Tyu_alone"]Gini ane punya masalah gan.
tb_satu
ID | LOGIN | NILAI
============
1 | 1 | 100
2 | 1 | 200
3 | 1 | 300
4 | 1 | 400
5 | 1 | 500
6 | 1 | 600
7 | 1 | 700
8 | 2 | 100
9 | 2 | 200
10 | 2 | 300
11 | 2 | 400
12 | 2 | 500
tb_dua
LOGIN | BATAS
============
1 | 2
2 | 3
Ane pengennya nampilin kayak gini gan hasilnya
mohon pencerahannya untuk buat sqlnya ya gan...
untuk CREATE VIEW tb_result AS....
tb_result
ID | LOGIN | NILAI
============
1 | 1 | 100
2 | 1 | 200
8 | 2 | 100
9 | 2 | 200
10 | 2 | 300
Mohon pencerahannya gan.
terima kasih[/quote:eef09bc531]
ini maksudnya apa seh?? pake quote2, punya sendiri lagi... by mas_kofa
more 13 years ago
madi
ID | LOGIN | NILAI
============
1 | 1 | 100
2 | 1 | 200
8 | 2 | 100
9 | 2 | 200
10 | 2 | 300
untuk menghasilkan query spt itu, syaratnya apa saja
more 13 years ago
Tyu_alone
sebenarnya hanya menampilkan tb_satu, tetapi jumlah record ditentukan oleh batas yangada di tb_dua
kalo boleh ane coba sprti ini gan,
[sql]select login, nilai, 0 as batas from tb_satu, tb_dua where tb_satu.login=tb_dua.login
union all
select login, nilai, batas from tb_dua limit 0,"hasil_dari_batas"[/sql]
tapi kayaknya kliru gan,bisa bantu ane gan,pliss....
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 3 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 4 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- tolong donk algoritma permutasi dan substitusi
by woko in Tip n Trik Pemrograman more 15 years ago - excel to dbgrid or the other...??
by adokonax in Tip n Trik Pemrograman more 17 years ago - tanya reporting
by ygmarta in Tip n Trik Pemrograman more 13 years ago - Membuat program dengan delphi tapi bisa jalan didos
by Zulkarnain in Reporting more 17 years ago - Query tabel b dari data di tabel a
by d_1k1ngz in MySQL more 12 years ago - Error di Delphi
by w4h703 in Tip n Trik Pemrograman more 17 years ago - Installer Dephi 7.0 Error
by Dedy_007 in Enginering more 16 years ago - Apakah Program Anda Siap Jalan di OS Windows Vista ?
by MrMixer in Form Enhancement & Graphical Controls more 17 years ago - Laporan yg bisa di Edit2 (fastreport)?
by archvile in Reporting more 16 years ago - import txt ke mysql
by mrajex in Lain-lain more 13 years ago