| SQL Max |
|
If you need to find the maximum value of a column in a table then the SQL MAX fuction would do a perfect job. To use the MAX function you would use the following syntax: SELECT MAX("column_name") FROM "table_name" Table: Student
For example to find out the most expensive course fees you would use the following examples: SELECT MAX(CourseFees) AS 'Max Course Fees' FROM Student RESULT: Max Course Fees 3000.00 In this case the 3000.00 is the maximum course fees for the student table following by 2000.00, 1500.00 and 1000.00.
|