• Inresect
  • SELECT column_names [,... n] FROM Table_1 INNER JOIN Table_2 ON condition
  • SELECT column_names [,... n] FROM Table_1 LEFT JOIN Table_2 ON condition
  • Natija: 9.7 – rasm. Zavod_xodimlari




    Download 15,05 Mb.
    bet9/19
    Sana16.05.2024
    Hajmi15,05 Mb.
    #237968
    1   ...   5   6   7   8   9   10   11   12   ...   19
    Bog'liq
    mal.B.2-ish

    Natija:


    9.7 – rasm. Zavod_xodimlari va Kon_xodimlari jadvallarini Union operatori orqali birlashtirish natijasi
    4. INTERSECT yordamida jadvallar kesishmasini topamiz;
    So`rov:

    SELECT *FROM mutolachi INTERSECT SELECT *FROM mutolachi_1;
    Natija:

    9.8 – rasm. mutolachi va mutolachi_1 jadvallarini Inresect operatori qo’llanilishi natijasi


    8-Amaliy mashg’ulot
    Mavzu: Bir nеchta jadvallar birlashtirish, JOINlar bilan ishlash




    SELECT_column_names_[,..._n]_FROM_Table_1_INNER_JOIN_Table_2_ON_condition'>SELECT
    column_names [,... n]
    FROM
    Table_1 INNER JOIN Table_2
    ON condition


    12.1 – rasm. Inner join operatorining Venn diagrammasi orqali ko’rinishi

    1. SQL LEFT JOIN operatorining 1jadval va 2 jadvalning 1 jadvalda mos elementlarini qo`shadi.

    SQL LEFT JOIN operatorining sintaksisi quyidagi ko`rinishda bo`ladi:




    SELECT
    column_names [,... n]
    FROM
    Table_1 LEFT JOIN Table_2
    ON condition


    12.2 – rasm. Left outer join operatorining Venn diagrammasi orqali ko’rinishi

    1. SQL RIGHT JOIN operatorining 2 jadval va 1 jadvalning 2 jadvalda mos elementlarini qo`shadi.

    SQL RIGHT JOIN operatorining sintaksisi quyidagi ko`rinishda bo`ladi:





    Download 15,05 Mb.
    1   ...   5   6   7   8   9   10   11   12   ...   19




    Download 15,05 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Natija: 9.7 – rasm. Zavod_xodimlari

    Download 15,05 Mb.