#MySQL #tutorial #course
SELECT first_name, last_name, hourly_pay,
(SELECT AVG(hourly_pay) FROM employees) AS avg_pay
FROM employees;
SELECT first_name, last_name
FROM customers
WHERE customer_id IN (SELECT DISTINCT customer_id
FROM transactions WHERE customer_id IS NOT NULL);
1 view
451
111
7 months ago 00:09:42 1
SQL Tutorial #13 - SQL EXISTS and NOT EXISTS Operator