• Sorov: select*from mahallalar_m where nomi lik ‘G%’; Natija: Sorov: : select*from mahallalar_m where nomi lik ‘N%’; Natija; 5
  • Sorov: select id, nomi,lower(nomi) funksiyasini kiritamiz Natija: Length
  • Sorov: select id,nomi, length(nomi) from mahallar_m where not id=4 Natija
  • Sorov: select max(soni) from mahallalar_m; Natija: Sorov: select max(soni) from mahallalar_m; Natija
  • Sorov: select avg(soni) from mahallalar_m; Natija
  • Sorov: select id,soni from mahallalar_m where id between 1 and 4




    Download 1,43 Mb.
    bet5/5
    Sana05.01.2024
    Hajmi1,43 Mb.
    #130389
    1   2   3   4   5
    Bog'liq
    1M b

    Sorov: select id,soni from mahallalar_m where id between 1 and 4;
    Natija:

    3. . Mahallalar_m jadavalidan [1;4] intervaldagi malumotlarni chiqaramiz;
    Sorov: select*from mahallalar_m where id between 1 and 4;
    Natija:

    4. Mahallalar_m jadvalida like ishlatamiz;
    Sorov: select*from mahallalar_m where nomi lik ‘G%’;
    Natija:

    Sorov: : select*from mahallalar_m where nomi lik ‘N%’;
    Natija;

    5.Mahallalar jadvalidan nomi satriga upper funksiyasi kiritamiz
    Sorov: select id, nomi, upper(nomi) from mahalllalar_m;
    Natija:


    1. Mahallalar jadvalidan nomi satriga lower funksiyasi kiritamiz

    Sorov: select id, nomi,lower(nomi) funksiyasini kiritamiz
    Natija:


    1. Length funksiyasi va mantiq ammalarini qollanilishi

    Sorov; select id,nomi,length(nomi) from mahallalar_m;
    Natija:


    1. Length funksiyasi yordamida id=4 teng bolmagan barcha id larni chiqarsin

    Sorov: select id,nomi, length(nomi) from mahallar_m where not id=4
    Natija:

    1. Order by funksiya orqali mahallalar jadvali alifbo tartibida bo’sin;

    Sorov: select*from mahallar_m order by nomi;
    Natija:


    1. Mahallar nomli tabeldan soni max va min bolgan malumotni chiqarin

    Sorov: select max(soni) from mahallalar_m;
    Natija:

    Sorov: select max(soni) from mahallalar_m;
    Natija:


    1. Sum funksiyasi orqali sonini hisoblimiz

    Sorov: select sum(soni) frommahallalar_m;
    Natija:


    1. Avg funksiya orqali o’rta arifmetigini hisoblimiz;

    Sorov: select avg(soni) from mahallalar_m;
    Natija:

    Download 1,43 Mb.
    1   2   3   4   5




    Download 1,43 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Sorov: select id,soni from mahallalar_m where id between 1 and 4

    Download 1,43 Mb.