Just running a SQL and wrote a query with a sub query but it has returned a null value, when its not suppose too. Not to sure if anyone can help without the database but here is my query:
*This is the exercise question: 'Use an SQL statement with a sub-query to list the employee ID and full name of those employees who are managers. Use the column headings Manager ID and Manager.'
SELECT
ReportsTo As 'Manager ID',
CONCAT(FirstName,' ',Lastname) As 'Manager'
FROM
Employees
WHERE
EmployeeID IN
(SELECT ReportsTo
FROM Employees);