• Select* from ishchilar order by oyligi; Order by
  • Select* from ishchilar order by oyligi Desc; Order by
  • Select *from ishchilar having oyligi<6000000;
  • select lavozimi, sum(oyligi) as 'oylik narxlari' from ishchilar group by lavozimi




    Download 3,59 Mb.
    bet6/6
    Sana13.05.2024
    Hajmi3,59 Mb.
    #228155
    1   2   3   4   5   6
    Bog'liq
    malumot.qayta1-6

    select lavozimi, sum(oyligi) as 'oylik narxlari' from ishchilar group by lavozimi;



    Group by kalit so‘zi va Sum() funksiyasining qo‘llanilishi
    2.maktab ishchilari oyligi guruhlanib eng ko‘p oylik oluvchi topilsin

    Group by kalit so’zi va Max() funksiyasining qo’llanilishi
    3.maktab ishchilari oyligi usish tartibi bo`yicha tartiblansin va usish tartibiga teskari tartibda tartiblansin.
    Select* from ishchilar order by oyligi;

    Order by kalit so’zining qo’llanilishi

    1. oyligini usish tartibiga teskari tartibda tartiblash:

    Select* from ishchilar order by oyligi Desc;

    Order by kalit so’zining Desc bilan qo‘llanilishi
    4. maktab ishchilari oladigan oylikning 6000000 dan kam oylik haqida ma`lumot berilsin:
    Select *from ishchilar having oyligi<6000000;

    Having kalit so’zining qo‘llanilishi

    Between ,not,in kalit so’zlarining qo‘llanilishi
    Download 3,59 Mb.
    1   2   3   4   5   6




    Download 3,59 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    select lavozimi, sum(oyligi) as 'oylik narxlari' from ishchilar group by lavozimi

    Download 3,59 Mb.