EXISTS
SQL
https://www.codewars.com/kata/58113a64e10b53ec36000293/solutions/sql
SELECT d.* FROM departments d WHERE EXISTS (SELECT 1 FROM sales s WHERE s.price>98 and s.department_id=d.id);
6
5
5
4
4