Malumotlarni qayta ishlashda mantiqiy ifodalardan foydalanish Narziyev Asomiddin


WHERE manzil IN (‘Navoiy', ‘Denov')


Download 7.82 Kb.
bet3/4
Sana18.06.2023
Hajmi7.82 Kb.
#1571303
1   2   3   4
Bog'liq
Ddd

WHERE manzil IN (‘Navoiy', ‘Denov')

manzil BY BUYURTMA;

 

Familiyasi Ismi Shahar

--------------- --------------- -------------

Narziyev Asomiddin Denov

Suvonov Nurbek Navoiy

Sultonov Javohir Navoiy

 

NOT IN operatoridan foydalanish

SELECT ismi "Ismi", familyasi "Familyasi",

manzil "City"

FROM xodim

WHERE manzil IN ('Marina', 'Edwardsville', 'St. Louis')

ORDER BY manzil;

 

Ismi Familyasi City

--------------- --------------- -------------

Narziyev Asomiddin Denov

Suvonov Nurbek Navoiy

Sultonov Javohir Navoiy

BETWEEN AND NOT BETWEEN


      • Oracle ikkita operatorni taqdim etadi: BETWEEN va BETWEEN EMAS, ular oddiygina so'rovdagi qiymatlar oralig'ini ko'rsatishi mumkin.

      • Bu AND mantiqiy operatoridan foydalanishni o'z ichiga olgan murakkabroq WHERE bandidan foydalanish zaruratini yo'q qiladi.

BETWEEN operatoridan foydalanish


      • The following query uses the AND logical operator.

      SELECT ismi "Ismi", familyasi "Familyasi",

      maoshi "Maosh"

      FROM xodim

      WHERE maoshi >= 900 AND maoshi <= 4000

      ORDER BY maoshi;

      Ismi Familyasi Maosh

      -------------- --------------- -----------

      Narziyev Asomiddin $1000

      Suvonov Nurbek $3000

      Sultonov Javohir $2000

BETWEEN operatoridan foydalanish


      • BETWEEN operatori yordamida so'rovni qayta yozish mumkin.

      SELECT ismi "Ismi", familyasi "Familyasi",

      maoshi "Maosh"

      FROM xodim

      WHERE maoshi BETWEEN 1000 AND 3000

      ORDER BY maoshi;

      Ismi Familyasi Maosh

      --------------- --------------- -----------

      Narziyev Asomiddin $1000


      Download 7.82 Kb.

      Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling