sql questions for interview git code example
Example: sql query interview questions githu
SELECT e.name AS 'Employee Name', e2.name AS 'Boss',
e.salary AS 'Employee salary', e2.salary AS 'Boss salary'
FROM employees e
JOIN employees e2 ON e.boss_id = e2.employee_id
WHERE e2.salary < e.salary;