Files
ITMO/task2.sql
T
LeterZP f86f7e02f5 Squashed 'DB/DBLab2/' content from commit 5451b82
git-subtree-dir: DB/DBLab2
git-subtree-split: 5451b828cd3210a475fde8e575ae5f94bdd4fdfe
2026-04-06 00:33:38 +03:00

5 lines
400 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SELECT Н_ЛЮДИ.ФАМИЛИЯ, Н_ОБУЧЕНИЯ.ЧЛВК_ИД, Н_УЧЕНИКИ.ИД FROM Н_ЛЮДИ
RIGHT JOIN Н_ОБУЧЕНИЯ ON Н_ЛЮДИ.ИД = Н_ОБУЧЕНИЯ.ЧЛВК_ИД
RIGHT JOIN Н_УЧЕНИКИ ON Н_ОБУЧЕНИЯ.ЧЛВК_ИД = Н_УЧЕНИКИ.ИД
WHERE (Н_ЛЮДИ.ОТЧЕСТВО > 'Георгиевич') AND (Н_ОБУЧЕНИЯ.ЧЛВК_ИД < 113409);