MIN in Teradata

In order to get the minimum value from a column in a table, MIN function can be used.

SELECT MIN(emp_id)
FROM tbl_employee;

Generally, MIN function will be used with GROUP BY clause to find the minimum value for each group.

SELECT MIN(emp_id), dept_id
GROUP BY dept_id;

In the above example, the minimum emp_id for every dept_id will be displayed.
Please note that since MIN function can act independently, we don't need to add it in GROUP BY clause.