Advertisement
c32team

sql question 24

Jun 20th, 2024
1,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.18 KB | None | 0 0
  1. SELECT fio from teachers
  2. WHERE id IN (SELECT teacher_id FROM participants
  3.     WHERE result < 4 AND teacher_id NOT IN (
  4.         SELECT teacher_id FROM participants WHERE result > 3));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement