SELECT
column_names [,... n]
FROM
Table_1 FULL JOIN Table_2
ON condition
8.4 – rasm. Full outer join operatorining Venn diagrammasi orqali ko’rinishi
Ishni bajarish tartibi
SQL INNER JOIN operatori
So`rov: SELECT *FROM zavod_xodimlari
INNER JOIN kon_xodimlari
ON zavod_xodimlari.FISH=kon_xodimlari.FISH;
Natija:
8.5 - rasm. Inner join qo’llanishi natijasi
2. LEFT JOIN operatori
So`rov: SELECT * FROM zavod_xodimlari
LEFT JOIN kon_xodimlari
ON zavod_xodimlari.manzili = kon_xodimlari.manzili;
Natija:
8.5 - rasm. Left join qo’llanishi natijasi
RIGHT JOIN operatori
So`rov: SELECT *FROM zavod_xodimlari
RIGHT JOIN kon_xodimlari
ON zavod_xodimlari.oyligi = kon_xodimlari.oyligi;
Natija:
8.6 – rasm. Right join qo’llanishi natijasi
3. CROSS JOIN operatori
So`rov: SELECT *FROM zavod_xodimlari
CROSS JOIN kon_xodimlari
ON zavod_xodimlari.ish_staji = kon_xodimlari.ish_staji;
Natija:
8.7– rasm. Cross join qo’llanishi natijasi
4. FULL OUTER JOIN operatori:
So`rov: SELECT *FROM zavod_xodimlari
FULL OUTER JOIN kon_xodimlari
ON zavod_xodimlari.FISH=kon_xodimlari.FISH;
Natija:
8.1– jadval. Full outer join qo’llanishi natijasi
Do'stlaringiz bilan baham: |