Image

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 kondisi
Artinya, 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

18 Comments

  • Image placeholder

    Jennifer

    04-12-2026 08:53:02

    References: Neosurf 20 deposit casino new neosurf casino australia

  • Image placeholder

    Willa

    03-12-2026 00:03:21

    References: Payid pokies instant withdrawal australia https://truckwiki.site/wiki/Best_PayID_Pokies_Australia_2026_Fast_Withdrawals

  • Image placeholder

    Brigitte

    21-11-2026 22:19:55

    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/

  • Image placeholder

    Yukiko

    21-11-2026 19:07:21

    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/

  • Image placeholder

    Marcella

    21-11-2026 02:33:45

    References: $20 payid deposit casino australia https://pbase.com

  • Image placeholder

    Kandis

    21-11-2026 01:42:29

    References: Online casino australia payid https://peters-bowers.thoughtlanes.net/

  • Image placeholder

    Joanna

    21-11-2026 01:41:35

    References: Payid gambling sites https://--7sbarohhk4a0dxb3c.??

  • Image placeholder

    Nola

    20-11-2026 08:40:51

    References: Payid casino australia payid betting sites australia

  • Image placeholder

    Bailey

    19-11-2026 23:32:27

    References: Payid pokies online https://nomadwiki.space/wiki/Casino_PayID_Australia_Complete_Guide_2026_PayAce

  • Image placeholder

    Berry

    19-11-2026 23:13:29

    References: Payid casino $20 deposit https://www.24propertyinspain.com

  • Image placeholder

    Leticia

    19-11-2026 11:08:15

    References: New payid pokies https://commonwiki.space/

  • Image placeholder

    Marcia

    18-11-2026 01:21:11

    References: Casino online que cobra por paypal https://pbase.com

  • Image placeholder

    Bart

    17-11-2026 21:33:44

    References: Casinos that take payid rdcvw.com

  • Image placeholder

    Keenan

    17-11-2026 01:54:13

    References: Foro casinos bizum saldo casino bizum

  • Image placeholder

    Ralph

    16-11-2026 07:47:09

    References: $20 payid deposit casino australia pad.koeln.ccc.de

  • Image placeholder

    Bailey

    16-11-2026 06:19:01

    References: Kasyno muchbetter wysokie stawki md.sigma2.no

  • Image placeholder

    Morris

    15-11-2026 19:13:39

    References: $20 payid deposit casino australia https://boardgameswiki.site/wiki/PayID_Casino_Free_Spins_Australia_2026

  • Image placeholder

    Jewspaway

    31-08-2024 14:28:17

    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

Popular Posts

1

Hello World Java Android

2

Login App dengan Java Programming

3
4

See All Popular

Berlangganan Berita

Kami akan mengirim informasi - informasi terbaru sekitar teknologi dan pemrograman untuk menambah refenrensi anda untuk menjadi programmer handal. Masukkan email anda kolom sebelah ->