Create three queries using tables Employee_T and hoursWorked_T.
- Returns a single column and single row in the outer query's WHERE clause
- Returns a single column and single row in the outer query's HAVING clause
- Returns a multi-column table in the outer-query's FROM clause
MySQL tables
CREATE TABLE IF NOT EXISTS Employee_T
(
empName VARCHAR(25)),
empNo INT,
Primary Key(empName)
);
CREATE TABLE IF NOT EXISTS hoursWorked_T
(
empName VARCHAR(20),
plannedHours INT,
actualHours INT,
Foreign Key(empName)
);