Skip to content

LARGE

CREATE TABLE Employees (
ID int,
Salary int
);
INSERT INTO Employees (ID, Salary)
VALUES (1, 5000), (2, 3000), (3, 4500), (4, 6000), (5, 10000);
SELECT MAX(Salary) AS Largest_Salary FROM Employees;
Largest_Salary
10000

The SQL query above first creates an ‘Employees’ table with ‘ID’ and ‘Salary’ as columns. It then inserts 5 records into the table. The MAX function is finally used to find the largest salary, which in this case is 10000.