#2) Data Manipulation Language MB dagi ma’lumotlarga maydon qo’shish/o’zgartirish
SELECT … FROM
Select more than 1 column: SELECT “COLUMN_NAME_1”, “COLUMN_NAME_2”
FROM “TABLE_NAME”
Select all columns: SELECT *
FROM “TABLE_NAME”
Ma’lumotlarni tanlashning turli usullari:
Select unique values: SELECT DISTINCT “Column_Name”
FROM “TABLE_NAME”
WHERE
SELECT “COLUMN_NAME”
FROM “TABLE_NAME”
WHERE “CONDITION”
Vaziyatdan kelib chiqqan holda bizga faqatgina ma’lum bir shart asosida aniq bir maydonni qidiradigan yoki ajratadigan bo’lsak unda “WHERE” so’zini buyruqlarda ishlatish mumkin.
“WHERE” so’zi:
Olinishi rejalashtirilgan ma’lumotlarni filtrlash.
SELECT * FROM employees WHERE Age > 45