Tutorial Mysql DB - Query SQL where ( = , >= , > , <= , < )
Pada tutorial sebelumnya ada kita telah membahas tentang berbagai macam query select. Belum semua sebenarnya. Tetapi dengan yang ini saja sudah cukup banyak untuk bekal kita membuat sebuah program dengan databasenya. Untuk lebih memperdalam kita sekarang akan masuk ke query where. Bagian awal kita akan membahas where (=, >=, <=).
Where ini berfungsi untuk menfilter kondisi query yang kita tulis.
select field from tabel_database where kondisiArtinya, kita akan menampilkan nama_kolom dari tabel tabel_database dimana kondisinya ..... Baiklah langsung saja kita ke contohnya.
1. where (=)
Where (=) berfungsi untuk mencari dengan kondisi isi_tabel harus sama dengan yang dicari. Nilai ini bersifat pasti. Jika tidak ditemukan, maka hasil baris kosong. Misal kita ingin melihat produk dengan brand 'indofood'
select *from produk where brand='indofood'Dari gambar diatas kita dapat melihat produk - produk dengan brand 'indofood'. Sekarang kita akan coba ubah sedikit menjadi 'indofod' ('o' pada huruf keenam dihapus).
select *from produk where brand='indofod'hasilnya, data yang tertampil menjadi kosong. Karena sifat where (=) bersifat pasti, maka hasilnya akan menjadi kosong. Meskipun bisa jadi kita salah tulis.2. Where (>= & >)
Where >= berfungsi untuk melihat hasil kondisi isi_tabel lebih besar atau sama dengan yang dicari. Misal kita ingin melihat produk dengan brand indofood dengan harga jual per bijinya lebih besar atau sama dengan Rp. 5000,-
select *from produk where brand='indofood' and harga_jual>='5000'Jika pada query tersebut kita hilangkan sama dengannya (=), maka kita nilai yang dicari harus lebih besar dari 5.000. angka 5.000 tidak termasuk didalam hasil pencarian.
select *from produk where brand='indofood' and harga_jual>'5000'3. Where (<= & <)
Where <= berfungsi untuk melihat hasil kondisi isi_tabel lebih kecil atau sama dengan yang dicari. Misal kita ingin melihat produk dengan brand indofood lagi dengan harga jual per bijinya lebih kecil atau sama dengan Rp. 5000,-
select *from produk where brand='indofood' and harga_jual<='5000'Sama seperti pada where lebih besar, jika pada query tersebut kita hilangkan sama dengannya (=), maka kita nilai yang dicari harus lebih kecil dari 5.000. Angka 5.000 tidak termasuk didalam hasil pencarian.
select *from produk where brand='indofood' and harga_jual<'5000'Categories: Database
Jennifer
References: Neosurf 20 deposit casino new neosurf casino australia
Willa
References: Payid pokies instant withdrawal australia https://truckwiki.site/wiki/Best_PayID_Pokies_Australia_2026_Fast_Withdrawals
Brigitte
When considering specific online PayID pokies, check those with the highest payout rates. Begin by selecting Australian online pokies PayID casinos that prioritise fair gameplay and provide a secure environment. They are reliable and secure and make your operations effortless. To initiate the use of the pokies PayID method, you’ll need to first establish an account with an Aussie bank and attach an identifier. When it’s time to withdraw online pokies Australia real money PayID bets, just enter your phone or email. References: https://forum.riskofficer.tech/
Yukiko
I always check for sneaky terms like steep wagering requirements that can ruin a good deal. All in all, the best PayID pokies sites mix fast and secure deposits with solid casino bonuses and smooth gameplay. What’s the best online pokies australia option for a beginner? The top online pokies australia table above lays out alternatives; Neospin currently reads as the best australian online pokies pick, Lucky Dreams follows as the best online pokies australia payid runner-up. Neospin Casino tops the ranking on tested payout speed, PayID support and licence, with sub-hour withdrawals and a A$45,000 monthly ceiling. References: https://makabharat.com/
Marcella
References: $20 payid deposit casino australia https://pbase.com
Kandis
References: Online casino australia payid https://peters-bowers.thoughtlanes.net/
Joanna
References: Payid gambling sites https://--7sbarohhk4a0dxb3c.??
Nola
References: Payid casino australia payid betting sites australia
Bailey
References: Payid pokies online https://nomadwiki.space/wiki/Casino_PayID_Australia_Complete_Guide_2026_PayAce
Berry
References: Payid casino $20 deposit https://www.24propertyinspain.com
Leticia
References: New payid pokies https://commonwiki.space/
Marcia
References: Casino online que cobra por paypal https://pbase.com
Bart
References: Casinos that take payid rdcvw.com
Keenan
References: Foro casinos bizum saldo casino bizum
Ralph
References: $20 payid deposit casino australia pad.koeln.ccc.de
Bailey
References: Kasyno muchbetter wysokie stawki md.sigma2.no
Morris
References: $20 payid deposit casino australia https://boardgameswiki.site/wiki/PayID_Casino_Free_Spins_Australia_2026
Jewspaway
I, like so many others on your site, am being strong armed by the medical profession to do lumpectomy, aggressive radiation for 5 6 weeks 5 days a week AND 5 years of tamoxifen for a diagnosis of priligy dapoxetine 30mg
Leave a comment