Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
How to select the maximum value from sql column
2761 Views
Hints 
MAX() is one of the SQL Aggregate Function.In sql different Aggregate Functions are used to return values.For example AVG(),COUNT(),FIRST(),LAST(),MIN(),SUM().

MAX() used to return the maximum values of column from table.Syntax and example follows,
Syntax
select MAX(columnName) from tableName;
Example
Find the biggest employee number.

select MAX(emp_no) from Empolyee;
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details