SQL Notları 1 ( Where Komutu )

WHERE Komutu

Where filtresi, bir koşula göre veri seçmek istenen sorgularda kullanılır. Oluşturulan sorguda Where ifadesinden sonra koşul-şart belirtilir.

Kullanımı :
Select “sütun_adı” From “tablo_adı”
Where “koşul”

Örnek : Product tablosunda yer alan , ProductID değeri 24 olan ürünlerin listelenmesi.
SELECT ProductID, Name { ProductID ve Name sütunlarını seçiyoruz }
FROM Product { Product tablosunu seçiyoruz }
WHERE ProductID = 24 { ProductID sütunundaki değeri 24 olan kayıtları listeliyoruz. }

Örnek : Product tablosunda yer alan , ProductID değeri 5 e eşit ve 5 ten büyük olan ürünlerin listelenmesi .
SELECT ProductID, Name
FROM Product
WHERE ProductID >= 5

Leave a Reply

https://www.galiro.com escort bayan bakırköy bostancı eskort eskort istanbul escort ataköy şişli eskort http://www.rehberistanbul.com/ aydın escort