{"id":577,"date":"2026-11-09T19:01:34","date_gmt":"2026-11-09T16:01:34","guid":{"rendered":"https:\/\/free-edu.ru\/blog\/?p=577"},"modified":"2026-11-16T14:03:13","modified_gmt":"2026-11-16T11:03:13","slug":"sql-join-chto-takoe-tipy-primery","status":"publish","type":"post","link":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/","title":{"rendered":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 SQL JOIN: \u0442\u0438\u043f\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432"},"content":{"rendered":"<p>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 join \u0432 sql \u2014 \u0432\u043e\u043f\u0440\u043e\u0441, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043b\u044e\u0431\u043e\u0433\u043e <a href=\"https:\/\/free-edu.ru\/blog\/analitik-dannyh\/\">\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/a>. \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c ON: \u043e\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043f\u043e \u043a\u0430\u043a\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 ISO\/ANSI SQL \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u044f\u0442\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0438\u043f\u043e\u0432 \u2014 INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN, CROSS JOIN \u2014 \u043f\u043b\u044e\u0441 \u043e\u0441\u043e\u0431\u044b\u0439 \u0432\u0438\u0434 SELF JOIN, \u043a\u043e\u0433\u0434\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0430 \u0441 \u0441\u043e\u0431\u043e\u0439.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c: \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430, sql \u0437\u0430\u043f\u0440\u043e\u0441\u044b join \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430, \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 NULL \u0432 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0445, \u043a\u0430\u043a \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u043a\u0430\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c.<\/p>\n<h2>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d JOIN \u0432 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>\u0420\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: \u043a\u0430\u0436\u0434\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0445\u0440\u0430\u043d\u0438\u0442 \u0444\u0430\u043a\u0442\u044b \u0440\u043e\u0432\u043d\u043e \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0442\u0438\u043f\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u2014 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445, \u0437\u0430\u043a\u0430\u0437\u0430\u0445, \u0442\u043e\u0432\u0430\u0440\u0430\u0445. \u0414\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f. \u041d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c.<\/p>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u0432\u044f\u0437\u0438 \u2014 \u043a\u043b\u044e\u0447\u0438. \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u0435\u0433\u043e \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438.<\/p>\n<p>\u0412\u043e\u0437\u044c\u043c\u0451\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440: \u0442\u0430\u0431\u043b\u0438\u0446\u0430 customers \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 orders. \u041f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u043d\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0438\u0445 \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445: \u00ab\u043a\u0430\u043a\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u043a\u0430\u0437 \u0438 \u043d\u0430 \u043a\u0430\u043a\u0443\u044e \u0441\u0443\u043c\u043c\u0443\u00bb \u2014 \u043e\u0442\u0432\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u0435\u0437 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 sql \u0437\u0430\u043f\u0440\u043e\u0441\u0435.<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>SELECT c.name, o.order_date, o.amount\nFROM customers AS c\nINNER JOIN orders AS o ON c.id = o.customer_id;<\/code><\/pre>\n<p>\u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0437\u043d\u043e\u0441\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u2014 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432 \u0431\u0434 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442 \u0435\u0451 \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440. \u0411\u0435\u0437 JOIN \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0438 \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/free-edu.ru\/\" style=\"color:#2c6fad;text-decoration:none\">\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f<\/a>.<\/p>\n<h2>\u0422\u0438\u043f\u044b SQL JOIN: \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430<\/h2>\n<p>\u0428\u0435\u0441\u0442\u044c \u0442\u0438\u043f\u043e\u0432 JOIN \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c: \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px\">\n<thead>\n<tr>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0422\u0438\u043f<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0427\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">INNER JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">FROM t1 INNER JOIN t2 ON \u2026<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c \u0432 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0430\u0440\u044b<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">LEFT JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">FROM t1 LEFT JOIN t2 ON \u2026<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0412\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 t1 + \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438\u0437 t2 (NULL \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041d\u0443\u0436\u043d\u044b \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043b\u0435\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">RIGHT JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">FROM t1 RIGHT JOIN t2 ON \u2026<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0412\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 t2 + \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438\u0437 t1 (NULL \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041d\u0443\u0436\u043d\u044b \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">FULL JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">FROM t1 FULL JOIN t2 ON \u2026<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0412\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446, NULL \u0441 \u043e\u0431\u0435\u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041f\u043e\u043b\u043d\u044b\u0439 \u043e\u0445\u0432\u0430\u0442 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">CROSS JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">FROM t1 CROSS JOIN t2<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0414\u0435\u043a\u0430\u0440\u0442\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u2014 m \u00d7 n \u0441\u0442\u0440\u043e\u043a<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">SELF JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">FROM t1 AS a JOIN t1 AS b ON \u2026<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0421\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0430\u0441\u0442\u043e \u0443\u043f\u0443\u0441\u043a\u0430\u044e\u0442: JOIN \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u2014 \u044d\u0442\u043e INNER JOIN \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. LEFT OUTER JOIN = LEFT JOIN, RIGHT OUTER JOIN = RIGHT JOIN, FULL OUTER JOIN = FULL JOIN \u2014 \u0441\u043b\u043e\u0432\u043e OUTER \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1024\" class=\"aligncenter size-full wp-image-575\" src=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/diagrammy-venna-inner.jpg\" alt=\"\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0412\u0435\u043d\u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0442\u0438\u043f\u043e\u0432 SQL JOIN: INNER, LEFT, RIGHT, FULL\" srcset=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/diagrammy-venna-inner.jpg 1536w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/diagrammy-venna-inner-300x200.jpg 300w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/diagrammy-venna-inner-1024x683.jpg 1024w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/diagrammy-venna-inner-768x512.jpg 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p>\n<h2>INNER JOIN \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/h2>\n<p>INNER JOIN \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u0438, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0432 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445. \u0421\u0442\u0440\u043e\u043a\u0438 \u0431\u0435\u0437 \u043f\u0430\u0440\u044b \u0432 \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442.<\/p>\n<p><strong>JOIN<\/strong><strong> \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u2014 \u0441\u0438\u043d\u043e\u043d\u0438\u043c <\/strong><strong>INNER JOIN<\/strong><strong>.<\/strong> \u041e\u0431\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b, \u043d\u043e \u044f\u0432\u043d\u043e\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c.<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>-- \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f: \u0441 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u0430\u043c\u0438\nSELECT e.name, e.salary, d.department_name\nFROM employees AS e\nINNER JOIN departments AS d\n  ON e.department_id = d.id;\n-- \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e, \u043c\u0435\u043d\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u043e \u043f\u0440\u0438 \u043c\u043d\u043e\u0433\u0438\u0445 JOIN\nSELECT employees.name, employees.salary, departments.department_name\nFROM employees\nINNER JOIN departments\n  ON employees.department_id = departments.id;<\/code><\/pre>\n<p>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441 NULL: \u0435\u0441\u043b\u0438 \u0443 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 department_id = NULL, \u0441\u0442\u0440\u043e\u043a\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u2014 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 ON e.department_id = d.id \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e NULL \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0438 \u0441 \u0447\u0435\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u0442\u0430\u0431\u043b\u0438\u0446\u0430 employees \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 5 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432, \u043e\u0434\u043d\u0430 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u2014 \u0415\u043b\u0435\u043d\u0430 \u2014 \u0431\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u0430 (NULL). \u0422\u0430\u0431\u043b\u0438\u0446\u0430 departments \u2014 4 \u043e\u0442\u0434\u0435\u043b\u0430, \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 (Finance) \u0431\u0435\u0437 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px\">\n<thead>\n<tr>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0417\u0430\u043f\u0440\u043e\u0441<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0421\u0442\u0440\u043e\u043a\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">INNER JOIN<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">4 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0415\u043b\u0435\u043d\u0430 \u0438 Finance \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u044b<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0415\u043b\u0435\u043d\u0430 (NULL dept)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">NULL \u2260 \u043b\u044e\u0431\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e id<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">Finance (\u043d\u0435\u0442 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041d\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u0441 \u043b\u0435\u0432\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>INNER JOIN \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0432 \u043e\u0442\u0447\u0451\u0442\u0430\u0445 \u043f\u043e \u043f\u043e\u043b\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u2014 \u0442\u0430\u043c, \u0433\u0434\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u0435\u0437 \u043f\u0430\u0440\u044b \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e INNER JOIN \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0451\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435.<\/p>\n<h2>LEFT JOIN \u0438 RIGHT JOIN \u2014 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f<\/h2>\n<p>LEFT JOIN \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043b\u0435\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043f\u0440\u0430\u0432\u043e\u0439. \u0415\u0441\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043d\u0435\u0442 \u2014 \u043f\u0440\u0430\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f NULL.<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>SELECT e.name, e.salary, d.department_name\nFROM employees AS e\nLEFT JOIN departments AS d\n  ON e.department_id = d.id;<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 \u0432\u0441\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0415\u043b\u0435\u043d\u0443:<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px\">\n<thead>\n<tr>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>name<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>salary<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>department_name<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0418\u0432\u0430\u043d<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">90 000<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Engineering<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u041c\u0430\u0440\u0438\u044f<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">75 000<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Marketing<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0410\u043b\u0435\u043a\u0441\u0435\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">110 000<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Engineering<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u041f\u0451\u0442\u0440<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">80 000<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">HR<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0415\u043b\u0435\u043d\u0430<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">65 000<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">NULL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Anti-join \u043f\u0430\u0442\u0442\u0435\u0440\u043d.<\/strong> LEFT JOIN \u0432 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441 WHERE t2.col IS NULL \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u0435\u0437 \u043f\u0430\u0440\u044b. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u2014 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0431\u0435\u0437 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u043a\u0430\u0437\u0430:<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>SELECT c.id, c.name\nFROM customers AS c\nLEFT JOIN orders AS o ON c.id = o.customer_id\nWHERE o.id IS NULL;<\/code><\/pre>\n<p>\u0411\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0438\u043c\u0435\u0440: \u043e\u0442\u0447\u0451\u0442 \u043f\u043e 8 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u043c \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u044f\u043c \u0432\u044b\u044f\u0432\u0438\u043b, \u0447\u0442\u043e \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u043f\u0440\u043e\u0434\u0430\u0436\u0438. LEFT JOIN \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c WHERE orders.id IS NULL \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u00ab\u043f\u0443\u0441\u0442\u044b\u0435\u00bb \u043a\u0430\u043c\u043f\u0430\u043d\u0438\u0438 \u2014 \u0441\u0438\u0433\u043d\u0430\u043b \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-574\" src=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/anti-join-left.jpg\" alt=\"\u0421\u0445\u0435\u043c\u0430 SQL anti-join \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430: LEFT JOIN \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c WHERE IS NULL\" srcset=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/anti-join-left.jpg 1672w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/anti-join-left-300x169.jpg 300w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/anti-join-left-1024x576.jpg 1024w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/anti-join-left-768x432.jpg 768w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/anti-join-left-1536x864.jpg 1536w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p><strong>RIGHT JOIN<\/strong> \u2014 \u0437\u0435\u0440\u043a\u0430\u043b\u043e LEFT JOIN: \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043f\u0440\u0430\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, NULL \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u0441\u043b\u0435\u0432\u0430 \u0431\u0435\u0437 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e\u0442 LEFT JOIN: \u0437\u0430\u043f\u0440\u043e\u0441 \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e, \u0438 \u00ab\u043b\u0435\u0432\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f\u00bb \u2014 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0443 \u0441 SQL \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0434\u0430\u0451\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u00ab\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u043f\u043e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0435 \u0438 \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445\u00bb \u2014 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0432 <a href=\"https:\/\/free-edu.ru\/catalog\" style=\"color:#2c6fad;text-decoration:none\">\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c<\/a>. \u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u0430\u0446\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u00ab\u041a\u0430\u0434\u0440\u044b\u00bb, 72 \u0447\u0430\u0441\u0430.<\/p>\n<h2>FULL JOIN \u0438 CROSS JOIN<\/h2>\n<p><strong>FULL JOIN<\/strong> \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 LEFT JOIN \u0438 RIGHT JOIN: \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043e\u0431\u0435\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446. \u0414\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u0431\u0435\u0437 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f NULL \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043e\u0431\u0435\u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d.<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>SELECT e.name, d.department_name\nFROM employees AS e\nFULL JOIN departments AS d ON e.department_id = d.id;<\/code><\/pre>\n<p><strong>\u0412\u0430\u0436\u043d\u043e \u0434\u043b\u044f MySQL:<\/strong> FULL OUTER JOIN \u0432 MySQL \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u2014 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f LEFT JOIN \u0438 RIGHT JOIN \u0447\u0435\u0440\u0435\u0437 UNION:<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>SELECT e.name, d.department_name\nFROM employees AS e\nLEFT JOIN departments AS d ON e.department_id = d.id\nUNION\nSELECT e.name, d.department_name\nFROM employees AS e\nRIGHT JOIN departments AS d ON e.department_id = d.id\nWHERE e.department_id IS NULL;<\/code><\/pre>\n<p>\u0412 PostgreSQL, SQL Server \u0438 Oracle FULL JOIN \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u2014 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p><strong>CROSS JOIN<\/strong> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0435\u043a\u0430\u0440\u0442\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435: \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432\u0442\u043e\u0440\u043e\u0439 \u0431\u0435\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u044f ON. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 m \u00d7 n \u0441\u0442\u0440\u043e\u043a.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: 3 \u0446\u0432\u0435\u0442\u0430 \u00d7 3 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 = 9 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439.<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px\">\n<thead>\n<tr>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0426\u0432\u0435\u0442<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0420\u0430\u0437\u043c\u0435\u0440<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">S<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">M<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">L<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0421\u0438\u043d\u0438\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">S<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0421\u0438\u043d\u0438\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">M<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0421\u0438\u043d\u0438\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">L<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">S<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">M<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">L<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>CROSS JOIN \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0440\u044f\u0434\u043e\u0432. \u0421 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 \u2014 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e: 1 000 \u00d7 1 000 = 1 000 000 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<h2>SELF JOIN \u2014 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0441\u0430\u043c\u043e\u0439 \u0441\u043e\u0431\u043e\u0439<\/h2>\n<p>SELF JOIN \u2014 \u043e\u0441\u043e\u0431\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439: \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0430 \u0441 \u0441\u043e\u0431\u043e\u0439. \u0421\u0423\u0411\u0414 \u043d\u0443\u0436\u043d\u044b \u0434\u0432\u0430 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u0430, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u0430 \u043d\u0435 \u043f\u043e\u0439\u043c\u0451\u0442, \u0438\u0437 \u043a\u0430\u043a\u043e\u0439 \u00ab\u043a\u043e\u043f\u0438\u0438\u00bb \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>-- \u041d\u0430\u0439\u0442\u0438 \u043f\u0430\u0440\u044b \u00ab\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u2192 \u043f\u043e\u0434\u0447\u0438\u043d\u0451\u043d\u043d\u044b\u0439\u00bb\nSELECT\n    e1.name AS employee,\n    e2.name AS manager\nFROM employees AS e1\nJOIN employees AS e2\n  ON e1.manager_id = e2.employee_id;<\/code><\/pre>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 employees \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 manager_id, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 employee_id \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. SELF JOIN \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u0441 \u0435\u0433\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c.<\/p>\n<p><strong>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e:<\/strong> \u0431\u0435\u0437 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446 (AS e1, AS e2) \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u0435\u0440\u043d\u0451\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u2014 SQL \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442 \u0434\u0432\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u0435\u0437 \u044f\u0432\u043d\u044b\u0445 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u043e\u0432. \u042d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u0438\u0434 JOIN, \u0433\u0434\u0435 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 SELF JOIN: \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0441 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c, \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0433\u0440\u0430\u0444 \u0441\u0432\u044f\u0437\u0435\u0439 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u041b\u044e\u0431\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0433\u0434\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/p>\n<h2>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 NULL \u0432 SQL JOIN<\/h2>\n<p>NULL \u2014 \u043e\u0441\u043e\u0431\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u00ab\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u00bb. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e: NULL \u2260 NULL. \u041d\u0438 \u043e\u0434\u043d\u043e NULL \u043d\u0435 \u0440\u0430\u0432\u043d\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u0438 \u0434\u0430\u0436\u0435 \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435.<\/p>\n<p>\u042d\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e:<\/p>\n<ul>\n<li><strong>INNER JOIN<\/strong> \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 NULL \u0432 \u043a\u043b\u044e\u0447\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 department_id = NULL, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 ON e.department_id = d.id \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u2014 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0438\u0437 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/li>\n<li><strong>OUTER JOIN<\/strong> (LEFT, RIGHT, FULL) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 NULL \u0434\u043b\u044f \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0441\u0442\u0440\u043e\u043a. \u042d\u0442\u043e \u00ab\u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 NULL\u00bb \u2014 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u0430\u0440\u044b, \u0430 \u043d\u0435 NULL \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/li>\n<\/ul>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>-- table1: id | dept_id    table2: id | dept_name\n--         1  | 10                  10 | 'HR'\n--         2  | NULL                20 | 'IT'\n--         3  | 20\n-- INNER JOIN \u0432\u0435\u0440\u043d\u0451\u0442 2 \u0441\u0442\u0440\u043e\u043a\u0438 (id=2 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u0430 \u0438\u0437-\u0437\u0430 NULL)\n-- LEFT JOIN \u0432\u0435\u0440\u043d\u0451\u0442 3 \u0441\u0442\u0440\u043e\u043a\u0438 (id=2 \u2192 dept_name = NULL)\nSELECT t1.id, t2.dept_name\nFROM table1 AS t1\nLEFT JOIN table2 AS t2 ON t1.dept_id = t2.id;<\/code><\/pre>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0432\u0435\u0442: \u0435\u0441\u043b\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f NULL \u2014 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0442\u0438\u043f JOIN \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0435. \u041f\u043e\u0442\u0435\u0440\u044f \u0441\u0442\u0440\u043e\u043a \u0438\u0437-\u0437\u0430 NULL \u0432 INNER JOIN \u2014 \u0447\u0430\u0441\u0442\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445.<\/p>\n<h2>\u041a\u0430\u043a SQL \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f JOIN<\/h2>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c JOIN. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c (\u043a\u0430\u043a\u043e\u0439 \u0442\u0438\u043f JOIN), \u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u2014 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0421\u0423\u0411\u0414.<\/p>\n<p>\u0424\u0430\u043a\u0442\u043e\u0440\u044b \u0432\u044b\u0431\u043e\u0440\u0430: \u0440\u0430\u0437\u043c\u0435\u0440 \u0442\u0430\u0431\u043b\u0438\u0446, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432, \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u2014 \u043f\u043b\u0430\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437 EXPLAIN \u0432 MySQL \u0438 PostgreSQL \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 Execution Plan \u0432 SQL Server.<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px\">\n<thead>\n<tr>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f<br \/>\n<\/strong><\/th>\n<th style=\"padding:12px 16px;text-align:left;border:1px solid #ddd;background:#2c2c2c;font-weight:500;font-size:13px;color:#ffffff\"><strong>\u041f\u0440\u0438\u0437\u043d\u0430\u043a \u0432 \u043f\u043b\u0430\u043d\u0435<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b (Nested Loop)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041c\u0430\u043b\u0430\u044f \u0432\u043d\u0435\u0448\u043d\u044f\u044f + \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Nested Loops<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c (Merge Join)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u041e\u0431\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438\u043b\u0438 \u0435\u0441\u0442\u044c B-tree \u0438\u043d\u0434\u0435\u043a\u0441<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Merge Join<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0425\u044d\u0448-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 (Hash Join)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">\u0411\u043e\u043b\u044c\u0448\u0438\u0435 \u043d\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Hash Match<\/td>\n<\/tr>\n<tr style=\"background:#f9f9f9\">\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5;font-weight:500\">\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 (Adaptive Join)<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">SQL Server 2017+, batch mode; \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 Hash \u0438 Nested Loop \u043f\u043e AdaptiveThresholdRows<\/td>\n<td style=\"padding:12px 16px;border:1px solid #ddd;line-height:1.5\">Adaptive Join<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 B-tree \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u2014 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0436\u0435 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b. \u0425\u044d\u0448-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0438\u0442 \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0438\u0437 \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 (\u0444\u0430\u0437\u0430 build), \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 (\u0444\u0430\u0437\u0430 probe) \u2014 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043d\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432 SQL Server 2017+ \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 Hash \u0438 Nested Loop \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0441\u0442\u0440\u043e\u043a \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u2014 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 batch mode \u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 140+.<\/p>\n<p>\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0434\u0451\u0436\u043d\u043e \u0431\u0435\u0437 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u044b \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438. \u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043b\u0430\u043d \u043f\u0440\u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0438 \u043d\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1024\" class=\"aligncenter size-full wp-image-573\" src=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/derevo-resheniy-vybor.jpg\" alt=\"\u0414\u0435\u0440\u0435\u0432\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0442\u0438\u043f\u0430 SQL JOIN: INNER, LEFT, RIGHT, FULL\" srcset=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/derevo-resheniy-vybor.jpg 1536w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/derevo-resheniy-vybor-300x200.jpg 300w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/derevo-resheniy-vybor-1024x683.jpg 1024w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/derevo-resheniy-vybor-768x512.jpg 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p>\n<h2>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 SQL JOIN<\/h2>\n<p><strong>\u041e\u0448\u0438\u0431\u043a\u0430 1: \u0437\u0430\u0431\u044b\u0442\u044b\u0439 <\/strong><strong>ON<\/strong><strong> \u2014 \u0434\u0435\u043a\u0430\u0440\u0442\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f<\/strong><\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>-- \u274c \u041d\u0435\u044f\u0432\u043d\u044b\u0439 CROSS JOIN\nSELECT * FROM employees, departments;\n-- \u2705 \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\nSELECT * FROM employees\nINNER JOIN departments ON employees.department_id = departments.id;<\/code><\/pre>\n<p>500 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u00d7 20 \u043e\u0442\u0434\u0435\u043b\u043e\u0432 = 10 000 \u0441\u0442\u0440\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0445 500. \u0412\u0441\u0435\u0433\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 ON.<\/p>\n<p><strong>\u041e\u0448\u0438\u0431\u043a\u0430 2: \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0442\u0438\u043f JOIN \u2014 \u043f\u043e\u0442\u0435\u0440\u044f \u0441\u0442\u0440\u043e\u043a<\/strong><\/p>\n<p>INNER JOIN \u0432\u043c\u0435\u0441\u0442\u043e LEFT JOIN \u0442\u0435\u0440\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0435\u0437 \u043f\u0430\u0440\u044b. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u2014 \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u0437\u0430\u043a\u0430\u0437\u043e\u0432 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 LEFT JOIN, \u0438\u043d\u0430\u0447\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0431\u0435\u0437 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442 \u0438\u0437 \u043e\u0442\u0447\u0451\u0442\u0430 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e.<\/p>\n<p><strong>\u041e\u0448\u0438\u0431\u043a\u0430 3: \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044e<\/strong><\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u0435 ON t1.name = t2.name \u0432\u043c\u0435\u0441\u0442\u043e ON t1.id = t2.customer_id \u2014 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e \u0431\u0438\u0437\u043d\u0435\u0441-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e, \u0430 \u043d\u0435 \u043f\u043e \u0441\u0432\u044f\u0437\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 \u2192 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447. \u041f\u0440\u0438 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0445\u0441\u044f \u0438\u043c\u0435\u043d\u0430\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c.<\/p>\n<p><strong>\u041e\u0448\u0438\u0431\u043a\u0430 4: \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/strong><\/p>\n<pre style=\"background:#f5f6f8;border:1px solid #e3e6ea;border-radius:6px;padding:14px 16px;overflow-x:auto;font-size:14px;line-height:1.5;white-space:pre\"><code>-- \u274c id (INTEGER) = customer_id (VARCHAR) \u2192 \u043d\u0435\u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435, \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f\nON orders.customer_id = customers.id\n-- \u2705 \u042f\u0432\u043d\u044b\u0439 CAST\nON CAST(orders.customer_id AS INTEGER) = customers.id<\/code><\/pre>\n<p>\u041d\u0435\u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u043e\u0431\u0445\u043e\u0434\u0438\u0442 \u0438\u043d\u0434\u0435\u043a\u0441 \u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CAST \u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0438\u043f\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0445\u0435\u043c\u044b \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1752\" height=\"897\" class=\"aligncenter size-full wp-image-572\" src=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/oshibki-sql-join.jpg\" alt=\"\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 SQL JOIN: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432\" srcset=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/oshibki-sql-join.jpg 1752w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/oshibki-sql-join-300x154.jpg 300w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/oshibki-sql-join-1024x524.jpg 1024w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/oshibki-sql-join-768x393.jpg 768w, https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/oshibki-sql-join-1536x786.jpg 1536w\" sizes=\"auto, (max-width: 1752px) 100vw, 1752px\" \/><\/p>\n<h2>\u0427\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b<\/h2>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 JOIN \u0432 SQL \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438?<\/h3>\n<p>JOIN \u2014 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0432 SQL, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u00ab\u043a\u043b\u0438\u0435\u043d\u0442\u044b\u00bb \u0438 \u00ab\u0437\u0430\u043a\u0430\u0437\u044b\u00bb: \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u043d\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. JOIN \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0438\u0445 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u00ab\u043a\u0430\u043a\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u043a\u0430\u0437\u00bb. \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 ON \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u0440\u0443\u0433\u043e\u0439.<\/p>\n<h3>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 JOIN \u0432 SQL: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e?<\/h3>\n<p>\u0421\u0423\u0411\u0414 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0449\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e ON. \u0421\u0442\u0440\u043e\u043a\u0438, \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044e, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440. \u0422\u0438\u043f JOIN (INNER, LEFT, FULL) \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0431\u0435\u0437 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439. \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c \u0438\u043b\u0438 \u0445\u044d\u0448-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435.<\/p>\n<h3>\u0412 \u0447\u0451\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 INNER JOIN \u0438 \u043f\u0440\u043e\u0441\u0442\u043e JOIN?<\/h3>\n<p>\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043d\u0435\u0442. JOIN \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u2014 \u044d\u0442\u043e INNER JOIN \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. FROM t1 JOIN t2 ON \u2026 \u0438 FROM t1 INNER JOIN t2 ON \u2026 \u0434\u0430\u044e\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c INNER JOIN \u044f\u0432\u043d\u043e: \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0447\u0443\u0436\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n<h3>\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c JOIN \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0430\u0431\u043b\u0438\u0446?<\/h3>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: SELECT \u043a\u043e\u043b\u043e\u043d\u043a\u0438 FROM \u0442\u0430\u0431\u043b\u0438\u0446\u04301 \u0422\u0418\u041f_JOIN \u0442\u0430\u0431\u043b\u0438\u0446\u04302 ON \u0442\u0430\u0431\u043b\u0438\u0446\u04301.\u043a\u043b\u044e\u0447 = \u0442\u0430\u0431\u043b\u0438\u0446\u04302.\u043a\u043b\u044e\u0447. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438: FROM customers AS c LEFT JOIN orders AS o ON c.id = o.customer_id. \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 ON \u2014 \u0441\u0432\u044f\u0437\u044c \u043f\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043a\u043b\u044e\u0447\u0443. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e JOIN \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439 \u0434\u043b\u044f \u0442\u0440\u0451\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446.<\/p>\n<h3>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 CROSS JOIN \u0438 \u043a\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/h3>\n<p>CROSS JOIN \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0435\u043a\u0430\u0440\u0442\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435: \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432\u0442\u043e\u0440\u043e\u0439 \u0431\u0435\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u044f ON. 100 \u0441\u0442\u0440\u043e\u043a \u00d7 50 \u0441\u0442\u0440\u043e\u043a = 5 000 \u0441\u0442\u0440\u043e\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0440\u044f\u0434\u043e\u0432. \u0421 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 \u2014 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e: \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0441\u0442\u0451\u0442 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e m \u00d7 n.<\/p>\n<h3>\u041a\u0430\u043a\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445?<\/h3>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 JOIN \u0438 \u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN, CROSS JOIN. \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u2014 \u043f\u043e\u0434\u0437\u0430\u043f\u0440\u043e\u0441 (\u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 SELECT), \u043d\u043e JOIN \u043e\u0431\u044b\u0447\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u0435\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435. \u0414\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0441\u0442\u0440\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 UNION \u2014 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f, \u043d\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 FULL JOIN \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 MySQL?<\/h3>\n<p>MySQL \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 FULL OUTER JOIN \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430. \u042d\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u2014 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f LEFT JOIN UNION RIGHT JOIN \u2026 WHERE \u043b\u0435\u0432\u0430\u044f_\u0442\u0430\u0431\u043b\u0438\u0446\u0430.id IS NULL: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043b\u0435\u0432\u043e\u0439 + \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u0431\u0435\u0437 \u043f\u0430\u0440. PostgreSQL, SQL Server \u0438 Oracle \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 FULL JOIN \u043d\u0430\u0442\u0438\u0432\u043d\u043e.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d SELF JOIN?<\/h3>\n<p>SELF JOIN \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u0430\u043c\u0443 \u0441 \u0441\u043e\u0431\u043e\u0439. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0433\u0434\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041f\u0440\u0438\u043c\u0435\u0440: \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u043e\u0439 manager_id \u2014 SELF JOIN \u0434\u0430\u0451\u0442 \u043f\u0430\u0440\u044b \u00ab\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u2192 \u043f\u043e\u0434\u0447\u0438\u043d\u0451\u043d\u043d\u044b\u0439\u00bb. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u0430 (AS e1, AS e2): \u0431\u0435\u0437 \u043d\u0438\u0445 SQL \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0442, \u0438\u0437 \u043a\u0430\u043a\u043e\u0439 \u00ab\u043a\u043e\u043f\u0438\u0438\u00bb \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntityOfPage\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/\"},\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 JOIN \u0432 SQL \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"JOIN \u2014 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0432 SQL, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u00ab\u043a\u043b\u0438\u0435\u043d\u0442\u044b\u00bb \u0438 \u00ab\u0437\u0430\u043a\u0430\u0437\u044b\u00bb: \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u043d\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. JOIN \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0438\u0445 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u00ab\u043a\u0430\u043a\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u043a\u0430\u0437\u00bb. \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 ON \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u0440\u0443\u0433\u043e\u0439.\"}},{\"@type\":\"Question\",\"name\":\"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 JOIN \u0432 SQL: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u0421\u0423\u0411\u0414 \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0449\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e ON. \u0421\u0442\u0440\u043e\u043a\u0438, \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044e, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440. \u0422\u0438\u043f JOIN (INNER, LEFT, FULL) \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0431\u0435\u0437 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439. \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c \u0438\u043b\u0438 \u0445\u044d\u0448-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435.\"}},{\"@type\":\"Question\",\"name\":\"\u0412 \u0447\u0451\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 INNER JOIN \u0438 \u043f\u0440\u043e\u0441\u0442\u043e JOIN?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043d\u0435\u0442. JOIN \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u2014 \u044d\u0442\u043e INNER JOIN \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. FROM t1 JOIN t2 ON \u2026 \u0438 FROM t1 INNER JOIN t2 ON \u2026 \u0434\u0430\u044e\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c INNER JOIN \u044f\u0432\u043d\u043e: \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0438 \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0447\u0443\u0436\u043e\u0433\u043e \u043a\u043e\u0434\u0430.\"}},{\"@type\":\"Question\",\"name\":\"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c JOIN \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0430\u0431\u043b\u0438\u0446?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: SELECT \u043a\u043e\u043b\u043e\u043d\u043a\u0438 FROM \u0442\u0430\u0431\u043b\u0438\u0446\u04301 \u0422\u0418\u041f_JOIN \u0442\u0430\u0431\u043b\u0438\u0446\u04302 ON \u0442\u0430\u0431\u043b\u0438\u0446\u04301.\u043a\u043b\u044e\u0447 = \u0442\u0430\u0431\u043b\u0438\u0446\u04302.\u043a\u043b\u044e\u0447. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u044b \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438: FROM customers AS c LEFT JOIN orders AS o ON c.id = o.customer_id. \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 ON \u2014 \u0441\u0432\u044f\u0437\u044c \u043f\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043a\u043b\u044e\u0447\u0443. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e JOIN \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439 \u0434\u043b\u044f \u0442\u0440\u0451\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446.\"}},{\"@type\":\"Question\",\"name\":\"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 CROSS JOIN \u0438 \u043a\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"CROSS JOIN \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0435\u043a\u0430\u0440\u0442\u043e\u0432\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435: \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432\u0442\u043e\u0440\u043e\u0439 \u0431\u0435\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u044f ON. 100 \u0441\u0442\u0440\u043e\u043a \u00d7 50 \u0441\u0442\u0440\u043e\u043a = 5 000 \u0441\u0442\u0440\u043e\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0440\u044f\u0434\u043e\u0432. \u0421 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438 \u2014 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e: \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0441\u0442\u0451\u0442 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e m \u00d7 n.\"}},{\"@type\":\"Question\",\"name\":\"\u041a\u0430\u043a\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 JOIN \u0438 \u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN, CROSS JOIN. \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u2014 \u043f\u043e\u0434\u0437\u0430\u043f\u0440\u043e\u0441 (\u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 SELECT), \u043d\u043e JOIN \u043e\u0431\u044b\u0447\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u0435\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435. \u0414\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0441\u0442\u0440\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 UNION \u2014 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f, \u043d\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.\"}},{\"@type\":\"Question\",\"name\":\"\u041f\u043e\u0447\u0435\u043c\u0443 FULL JOIN \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 MySQL?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"MySQL \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 FULL OUTER JOIN \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430. \u042d\u043c\u0443\u043b\u044f\u0446\u0438\u044f \u2014 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f LEFT JOIN UNION RIGHT JOIN \u2026 WHERE \u043b\u0435\u0432\u0430\u044f_\u0442\u0430\u0431\u043b\u0438\u0446\u0430.id IS NULL: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043b\u0435\u0432\u043e\u0439 + \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u0431\u0435\u0437 \u043f\u0430\u0440. PostgreSQL, SQL Server \u0438 Oracle \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 FULL JOIN \u043d\u0430\u0442\u0438\u0432\u043d\u043e.\"}},{\"@type\":\"Question\",\"name\":\"\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d SELF JOIN?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"SELF JOIN \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u0430\u043c\u0443 \u0441 \u0441\u043e\u0431\u043e\u0439. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0433\u0434\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041f\u0440\u0438\u043c\u0435\u0440: \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u043e\u0439 manager_id \u2014 SELF JOIN \u0434\u0430\u0451\u0442 \u043f\u0430\u0440\u044b \u00ab\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u2192 \u043f\u043e\u0434\u0447\u0438\u043d\u0451\u043d\u043d\u044b\u0439\u00bb. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c\u0430 (AS e1, AS e2): \u0431\u0435\u0437 \u043d\u0438\u0445 SQL \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0442, \u0438\u0437 \u043a\u0430\u043a\u043e\u0439 \u00ab\u043a\u043e\u043f\u0438\u0438\u00bb \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.\"}}]}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"singleBlog__desc\">SQL JOIN \u2014 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. \u0414\u0443\u043c\u0430\u0439\u0442\u0435 \u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u043a\u0430\u043a \u043e\u0431 \u043e\u0441\u0442\u0440\u043e\u0432\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u043e JOIN \u2014 \u043a\u0430\u043a \u043e \u043c\u043e\u0441\u0442\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438: \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u043f\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435, \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u043e\u0437\u043d\u0435\u043d\u043d\u043e\u0439.<\/p>\n","protected":false},"author":1,"featured_media":576,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"id-post-1":0,"id-post-2":0,"id-post-3":0,"img":"","title":"","point-1":"","point-link-1":"","point-2":"","point-link-2":"","point-3":"","point-link-3":"","point-4":"","point-link-4":"","point-5":"","point-link-5":"","text":"","link":"","cta-position":"last","cta-status":false,"cta-tags":"","cta-priority":50,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-577","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-13"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"user\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ru_RU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Free-Edu - \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u043a\u0443\u0440\u0441\u044b \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 75%\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b\" \/>\n\t\t<meta property=\"og:description\" content=\"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1672\" \/>\n\t\t<meta property=\"og:image:height\" content=\"941\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-09T16:01:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-16T11:03:13+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b\" \/>\n\t\t<meta name=\"twitter:description\" content=\"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#blogposting\",\"name\":\"SQL JOIN: \\u0447\\u0442\\u043e \\u044d\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 \\u0438 \\u043a\\u0430\\u043a \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u044f\\u0442\\u044c \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u044b\",\"headline\":\"\\u0427\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 SQL JOIN: \\u0442\\u0438\\u043f\\u044b \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u0435\\u043d\\u0438\\u0439 \\u0441 \\u043f\\u0440\\u0438\\u043c\\u0435\\u0440\\u0430\\u043c\\u0438 \\u0437\\u0430\\u043f\\u0440\\u043e\\u0441\\u043e\\u0432\",\"author\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/author\\\/user\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/free-edu.ru\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/sql-join-skhema.jpg\",\"width\":1672,\"height\":941,\"caption\":\"\\u0421\\u0445\\u0435\\u043c\\u0430 SQL JOIN: \\u0434\\u0432\\u0435 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u044b \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u044f\\u044e\\u0442\\u0441\\u044f \\u0441\\u0442\\u0440\\u0435\\u043b\\u043a\\u043e\\u0439 \\u0432 \\u0440\\u0435\\u0437\\u0443\\u043b\\u044c\\u0442\\u0438\\u0440\\u0443\\u044e\\u0449\\u0438\\u0439 \\u043d\\u0430\\u0431\\u043e\\u0440\"},\"datePublished\":\"2026-11-09T19:01:34+03:00\",\"dateModified\":\"2026-11-16T14:03:13+03:00\",\"inLanguage\":\"ru-RU\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#webpage\"},\"articleSection\":\"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0442\\u0438\\u043a\\u0430 \\u0438 \\u0434\\u0430\\u043d\\u043d\\u044b\\u0435\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/free-edu.ru\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/category\\\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\\\/#listItem\",\"name\":\"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0442\\u0438\\u043a\\u0430 \\u0438 \\u0434\\u0430\\u043d\\u043d\\u044b\\u0435\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/category\\\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\\\/#listItem\",\"position\":2,\"name\":\"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0442\\u0438\\u043a\\u0430 \\u0438 \\u0434\\u0430\\u043d\\u043d\\u044b\\u0435\",\"item\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/category\\\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#listItem\",\"name\":\"\\u0427\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 SQL JOIN: \\u0442\\u0438\\u043f\\u044b \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u0435\\u043d\\u0438\\u0439 \\u0441 \\u043f\\u0440\\u0438\\u043c\\u0435\\u0440\\u0430\\u043c\\u0438 \\u0437\\u0430\\u043f\\u0440\\u043e\\u0441\\u043e\\u0432\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#listItem\",\"position\":3,\"name\":\"\\u0427\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 SQL JOIN: \\u0442\\u0438\\u043f\\u044b \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u0435\\u043d\\u0438\\u0439 \\u0441 \\u043f\\u0440\\u0438\\u043c\\u0435\\u0440\\u0430\\u043c\\u0438 \\u0437\\u0430\\u043f\\u0440\\u043e\\u0441\\u043e\\u0432\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/category\\\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\\\/#listItem\",\"name\":\"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0442\\u0438\\u043a\\u0430 \\u0438 \\u0434\\u0430\\u043d\\u043d\\u044b\\u0435\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/#organization\",\"name\":\"Free-Edu\",\"description\":\"\\u0411\\u0435\\u0441\\u043f\\u043b\\u0430\\u0442\\u043d\\u043e\\u0435 \\u043e\\u0431\\u0443\\u0447\\u0435\\u043d\\u0438\\u0435 \\u0438 \\u043a\\u0443\\u0440\\u0441\\u044b \\u0441\\u043e \\u0441\\u043a\\u0438\\u0434\\u043a\\u043e\\u0439 75%\",\"url\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/author\\\/user\\\/#author\",\"url\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/author\\\/user\\\/\",\"name\":\"user\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4bc19a8ec06ef1c797df12fa047cba86ab13e095ad33f23959bc5b1abfac0cdd?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"user\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#webpage\",\"url\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/\",\"name\":\"SQL JOIN: \\u0447\\u0442\\u043e \\u044d\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 \\u0438 \\u043a\\u0430\\u043a \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u044f\\u0442\\u044c \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u044b\",\"description\":\"SQL JOIN \\u043e\\u0431\\u044a\\u0435\\u0434\\u0438\\u043d\\u044f\\u0435\\u0442 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0438 \\u0438\\u0437 \\u0434\\u0432\\u0443\\u0445 \\u0438 \\u0431\\u043e\\u043b\\u0435\\u0435 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446 \\u043f\\u043e \\u0441\\u0432\\u044f\\u0437\\u0430\\u043d\\u043d\\u043e\\u043c\\u0443 \\u0441\\u0442\\u043e\\u043b\\u0431\\u0446\\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \\u2014 \\u0440\\u0430\\u0437\\u0431\\u0438\\u0440\\u0430\\u0435\\u043c \\u043a\\u0430\\u0436\\u0434\\u044b\\u0439 \\u0442\\u0438\\u043f \\u0441 \\u043f\\u0440\\u0438\\u043c\\u0435\\u0440\\u0430\\u043c\\u0438 \\u043a\\u043e\\u0434\\u0430.\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/author\\\/user\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/author\\\/user\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/free-edu.ru\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/sql-join-skhema.jpg\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#mainImage\",\"width\":1672,\"height\":941,\"caption\":\"\\u0421\\u0445\\u0435\\u043c\\u0430 SQL JOIN: \\u0434\\u0432\\u0435 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u044b \\u0441\\u043e\\u0435\\u0434\\u0438\\u043d\\u044f\\u044e\\u0442\\u0441\\u044f \\u0441\\u0442\\u0440\\u0435\\u043b\\u043a\\u043e\\u0439 \\u0432 \\u0440\\u0435\\u0437\\u0443\\u043b\\u044c\\u0442\\u0438\\u0440\\u0443\\u044e\\u0449\\u0438\\u0439 \\u043d\\u0430\\u0431\\u043e\\u0440\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/sql-join-chto-takoe-tipy-primery\\\/#mainImage\"},\"datePublished\":\"2026-11-09T19:01:34+03:00\",\"dateModified\":\"2026-11-16T14:03:13+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/\",\"name\":\"Free-Edu\",\"description\":\"\\u0411\\u0435\\u0441\\u043f\\u043b\\u0430\\u0442\\u043d\\u043e\\u0435 \\u043e\\u0431\\u0443\\u0447\\u0435\\u043d\\u0438\\u0435 \\u0438 \\u043a\\u0443\\u0440\\u0441\\u044b \\u0441\\u043e \\u0441\\u043a\\u0438\\u0434\\u043a\\u043e\\u0439 75%\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/free-edu.ru\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b","description":"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.","canonical_url":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#blogposting","name":"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b","headline":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 SQL JOIN: \u0442\u0438\u043f\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432","author":{"@id":"https:\/\/free-edu.ru\/blog\/author\/user\/#author"},"publisher":{"@id":"https:\/\/free-edu.ru\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg","width":1672,"height":941,"caption":"\u0421\u0445\u0435\u043c\u0430 SQL JOIN: \u0434\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440"},"datePublished":"2026-11-09T19:01:34+03:00","dateModified":"2026-11-16T14:03:13+03:00","inLanguage":"ru-RU","mainEntityOfPage":{"@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#webpage"},"isPartOf":{"@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#webpage"},"articleSection":"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435"},{"@type":"BreadcrumbList","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog#listItem","position":1,"name":"Home","item":"https:\/\/free-edu.ru\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog\/category\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\/#listItem","name":"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435"}},{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog\/category\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\/#listItem","position":2,"name":"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435","item":"https:\/\/free-edu.ru\/blog\/category\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\/","nextItem":{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#listItem","name":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 SQL JOIN: \u0442\u0438\u043f\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432"},"previousItem":{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#listItem","position":3,"name":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 SQL JOIN: \u0442\u0438\u043f\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432","previousItem":{"@type":"ListItem","@id":"https:\/\/free-edu.ru\/blog\/category\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\/#listItem","name":"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435"}}]},{"@type":"Organization","@id":"https:\/\/free-edu.ru\/blog\/#organization","name":"Free-Edu","description":"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u043a\u0443\u0440\u0441\u044b \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 75%","url":"https:\/\/free-edu.ru\/blog\/"},{"@type":"Person","@id":"https:\/\/free-edu.ru\/blog\/author\/user\/#author","url":"https:\/\/free-edu.ru\/blog\/author\/user\/","name":"user","image":{"@type":"ImageObject","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/4bc19a8ec06ef1c797df12fa047cba86ab13e095ad33f23959bc5b1abfac0cdd?s=96&d=mm&r=g","width":96,"height":96,"caption":"user"}},{"@type":"WebPage","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#webpage","url":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/","name":"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b","description":"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/free-edu.ru\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#breadcrumblist"},"author":{"@id":"https:\/\/free-edu.ru\/blog\/author\/user\/#author"},"creator":{"@id":"https:\/\/free-edu.ru\/blog\/author\/user\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg","@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#mainImage","width":1672,"height":941,"caption":"\u0421\u0445\u0435\u043c\u0430 SQL JOIN: \u0434\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440"},"primaryImageOfPage":{"@id":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/#mainImage"},"datePublished":"2026-11-09T19:01:34+03:00","dateModified":"2026-11-16T14:03:13+03:00"},{"@type":"WebSite","@id":"https:\/\/free-edu.ru\/blog\/#website","url":"https:\/\/free-edu.ru\/blog\/","name":"Free-Edu","description":"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u043a\u0443\u0440\u0441\u044b \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 75%","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/free-edu.ru\/blog\/#organization"}}]},"og:locale":"ru_RU","og:site_name":"Free-Edu - \u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u043a\u0443\u0440\u0441\u044b \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 75%","og:type":"article","og:title":"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b","og:description":"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.","og:url":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/","og:image":"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg","og:image:secure_url":"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg","og:image:width":1672,"og:image:height":941,"article:published_time":"2026-11-09T16:01:34+00:00","article:modified_time":"2026-11-16T11:03:13+00:00","twitter:card":"summary_large_image","twitter:title":"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b","twitter:description":"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.","twitter:image":"https:\/\/free-edu.ru\/wp-content\/uploads\/2026\/11\/sql-join-skhema.jpg"},"aioseo_meta_data":{"post_id":"577","title":"SQL JOIN: \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0438 \u043a\u0430\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b","description":"SQL JOIN \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0443. INNER, LEFT, RIGHT, FULL, CROSS, SELF JOIN \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-09 16:01:33","updated":"2026-11-17 16:49:50"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/free-edu.ru\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/free-edu.ru\/blog\/category\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\/\" title=\"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435\">\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 SQL JOIN: \u0442\u0438\u043f\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/free-edu.ru\/blog"},{"label":"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435","link":"https:\/\/free-edu.ru\/blog\/category\/%d0%b0%d0%bd%d0%b0%d0%bb%d0%b8%d1%82%d0%b8%d0%ba%d0%b0-%d0%b8-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d0%b5\/"},{"label":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 SQL JOIN: \u0442\u0438\u043f\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432","link":"https:\/\/free-edu.ru\/blog\/sql-join-chto-takoe-tipy-primery\/"}],"_links":{"self":[{"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/posts\/577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/comments?post=577"}],"version-history":[{"count":6,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/posts\/577\/revisions"}],"predecessor-version":[{"id":847,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/posts\/577\/revisions\/847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/media\/576"}],"wp:attachment":[{"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/media?parent=577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/categories?post=577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/free-edu.ru\/blog\/wp-json\/wp\/v2\/tags?post=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}