Skip to content

SELECT

SELECT firstName, lastName
FROM Employees
WHERE department = 'Sales';
firstNamelastName
JohnDoe
JaneSmith

The SELECT statement retrieves data from the ‘Employees’ table. Only employees whose department is ‘Sales’ are included, and only their First and Last names are displayed.