w3resource

PostgreSQL Aggregate Functions and Group By: Find the minimum salary paid to the employee


3. Write a query to get the minimum salary from employees table.

Sample Solution:

Code:

SELECT MIN(salary) 
FROM employees;

Sample table: employees


Output:

pg_exercises=# SELECT MIN(salary)
pg_exercises-# FROM employees;
   min
---------
 2130.00
(1 row)

Practice Online


Have another way to solve this solution? Contribute your code (and comments) through Disqus.

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming