Postgres and Open Source Experts

Anytime. Anywhere. Since 1997.

Education

Professional Postgres and Open Source support

Command Prompt, Inc., is the oldest Postgres Company in North America and one of the oldest Open Source firms still operating today. We serve our clients with best in class expertise and professionalism. You can read more about support and services here:


You have landed at the largest single source of Postgres education blogs in the world. At Command Prompt, we believe deeply that the education of the community is critical to the continued success of Postgres and related technologies. We hope you find content you are looking for and don't hesitate to Contact us today for all your Postgres and Open Source consulting and support needs.

Exception Handling in PostgreSQL

Exceptions are unexpected issues that we encounter while executing a program code. These disturb and sometimes abort the normal functioning of the program.

How to Get Records From the Last 24 Hours in PostgreSQL

To get records from the last 24 hours in Postgres, execute the "SELECT * " command and set a condition to subtract "24 hours" from the current DateTime.

How to Use ASSERT Statement in PostgreSQL

PostgreSQL provides an ASSERT statement for inserting debugging checks for the program. The ASSERT statement provides a condition to the program.

How to Use Dollar-Quoted String Constants

To insert a single quote in the text, we will have to double it up. This makes the text very complex and unreadable in case the string contains many single quotes.

PostgreSQL Data Definition Language (DDL)

The DDL(Data Definition Language) is used for creating and modifying the object structures in the database using some commands and statements.

How to Get the First Row Per Group in PostgreSQL

To get the first row per group in Postgres, divide the data into groups, assign a number to each row, sort the data in specific order, and retrieve the top row.

PostgreSQL Data Manipulation Language (DML)

Data Manipulation Language, which is basically used to modify the data in a database. The most commonly used commands are INSERT, UPDATE, and DELETE.

Postgresql: INSERT INTO ... (SELECT * ...)

INSERT INTO SELECT is a very useful statement in PostgreSQL which allows us to select or copy some data from one table and insert it into another.

RANK() versus DENSE_RANK() in Postgres: What is the Difference?

Rank() and DENSE_RANK() are the functions used to rank the data. Both functions have some functionality in common and some differences are also there.

Array Operators in PostgreSQL

Array operators are used to perform different operations on arrays. These operators are used for comparison, containment, overlapping, and concatenation.