From 9e35fa45cd19b75c19f44e06dc9004927d2fff07 Mon Sep 17 00:00:00 2001 From: elena belykh Date: Mon, 5 Jan 2026 19:45:20 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D1=83=20JOIN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ebelykh/postgresql/JOIN/JOIN.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ebelykh/postgresql/JOIN/JOIN.sql diff --git a/ebelykh/postgresql/JOIN/JOIN.sql b/ebelykh/postgresql/JOIN/JOIN.sql new file mode 100644 index 0000000..ec94940 --- /dev/null +++ b/ebelykh/postgresql/JOIN/JOIN.sql @@ -0,0 +1,20 @@ +--Задача 1068 +SELECT p.product_name, s.year, s.price +FROM Sales s +JOIN Product p +ON s.product_id = p.product_id; + +--Задача 1378 +SELECT EmployeeUNI.unique_id, + Employees.name +FROM Employees +LEFT JOIN EmployeeUNI +ON Employees.id = EmployeeUNI.id; + +--Задача 577 +SELECT e.name, b.bonus +FROM Employee e +LEFT JOIN Bonus b +ON e.empId = b.empId +WHERE b.bonus < 1000 + OR b.bonus IS NULL; \ No newline at end of file