Inserting and querying employees without managers

Report a typo

In the given code snippet, an Employees table is being created and a record is inserted showcasing John Doe with no manager. After this, a query is to be written to fetch John Doe's records. How will you fill up the blank spaces in the insertion query and select query to properly insert John's details and select all employees who do not have a manager?

Fill in the gaps with the relevant elements
CREATE TABLE Employees (
    ID INT,
    FirstName VARCHAR(30),
    LastName VARCHAR(30),
    ManagerID INT
);

INSERT INTO Employees (ID, FirstName, LastName, ManagerID)
VALUES (1, 'John', 'Doe', );

SELECT FirstName, LastName 
FROM Employees
 ManagerID  NULL;

Create a free account to access the full topic