sql max length code example
Example 1: sql display max value
SELECT MAX(<numeric column>) FROM <table>;
SELECT MAX(<numeric column>) FROM <table> GROUP BY <other column>;
Example 2: sql max count
SELECT max(MY_COLUMN) FROM my_table;
SELECT MY_ID, max(MY_COLUMN) FROM my_table GROUP BY ID; -- Max by MY_ID