12.4 – rasm. Full outer join operatorining Venn diagrammasi orqali
ko‘rinishi.
Ishni bajarish tartibi
1. SQL INNER JOIN operatori
So`rov: SELECT *FROM zavod_xodimlari
INNER JOIN kon_xodimlari
ON zavod_xodimlari.FISH=kon_xodimlari.FISH;
Natija:
12.5 - rasm. Inner join qo‘llanishi natijasi.
SELECT
column_names [,... n]
FROM
Table_1 CROSS JOIN Table_2
73
2. LEFT JOIN operatori
So`rov: SELECT * FROM zavod_xodimlari
LEFT JOIN kon_xodimlari
ON zavod_xodimlari.manzili = kon_xodimlari.manzili;
Natija:
12.5 - rasm. Left join qo‘llanishi natijasi.
2.
RIGHT JOIN operatori
So`rov: SELECT *FROM zavod_xodimlari
RIGHT JOIN kon_xodimlari
ON zavod_xodimlari.oyligi = kon_xodimlari.oyligi;
Natija:
12.6 – rasm. Right join qo‘llanishi natijasi.
74
3. CROSS JOIN operatori
Do'stlaringiz bilan baham: |