Skip to the content.
< PREVIOUS   NEXT >

MIN AND MAX

MIN() AND MIN() SYNTAX

SELECT MIN(column_name)
FROM table_name
WHERE condition;


SELECT MAX(column_name)
FROM table_name
WHERE condition;

EXAMPLE

Suppose there is a Table name as “HrEmployee” having Age, Attrition, BusinessTravel, DailyRate, Department, DistanceFromHome, Education, EducationField columns, EmployeeNumber, etc as Columns.




< PREVIOUS   NEXT >

HOME