Site icon Database Tutorials

PostgreSQL Max Function

In today’s article, we will examine the general use and purpose of the PostgreSQL MAX() function.

The PostgreSQL MAX() function retrieves the largest value, indicated by expression in a set of grouped rows.

General Usage;

For example, if we want to find the object with the highest price among the products in our depo table, the following script will help us.

The picture below shows the highest price.

Exit mobile version