min function sql code example Example: sql min select min(name_of_column) alias_name from name_of_table;