Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql max min

select emp_name, salary
from employees
where salary = (select max(salary) from employees)
union all
select emp_name, salary
from employees
where salary = (select min(salary) from employees);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #max #min
ADD COMMENT
Topic
Name
1+3 =