SlingAcademy

PostgreSQL

PostgreSQL is a free and open-source database system that supports both relational and non-relational queries. It is reliable, user-friendly, and extensible, with many features such as user-defined types, table inheritance, nested transactions, and asynchronous replication. It supports various programming languages and platforms.

Boolean data type in PostgreSQL: How to store true/false values

Updated: Jan 04, 2024

Introduction In PostgreSQL, the Boolean data type is a fundamental component used to store true or false values, enabling developers to handle conditional logic directly within their databases. Understanding the nuances of the Boolean......

JSON data type in PostgreSQL: How to store JSON data

Updated: Jan 04, 2024

Introduction The integration of JSON as a first-class data type in PostgreSQL provides a powerful tool for developers, enabling them to store structured and semi-structured data seamlessly within a relational database......

Using ‘IS NULL’ and ‘IS NOT NULL’ in PostgreSQL

Updated: Jan 04, 2024

Overview With PostgreSQL, checking for NULL values is a common part of querying. Through ‘IS NULL’ and ‘IS NOT NULL’ operators, this tutorial will guide you on managing null values in your database, ensuring......

Using ‘LIKE’ and ‘ILIKE’ in PostgreSQL

Updated: Jan 04, 2024

Introduction In PostgreSQL, pattern matching is an indispensable tool for querying a subset of data, particularly when looking for specific patterns within strings. Among the pattern matching commands, LIKE and ILIKE are the most......

Using ‘BETWEEN’ and ‘NOT BETWEEN’ in PostgreSQL

Updated: Jan 04, 2024

Introduction The BETWEEN and NOT BETWEEN operators in PostgreSQL are powerful tools for filtering results within a specified range. This tutorial examines how to leverage these operators to control data queries......

Using ‘FETCH FIRST’ and ‘OFFSET’ in PostgreSQL

Updated: Jan 04, 2024

Introduction The SQL clauses ‘FETCH FIRST’ and ‘OFFSET’ are PostgreSQL features designed to control the number of records returned by a query, supporting the implementation of pagination. This tutorial......

Using ‘IN’ and ‘NOT IN’ in PostgreSQL

Updated: Jan 04, 2024

Introduction Understanding the use of ‘IN’ and ‘NOT IN’ clauses in PostgreSQL is fundamental for querying data with complex criteria efficiently. This tutorial explores these conditionals in detail with......

PostgreSQL ORDER BY: Ascending and Descending Sorting

Updated: Jan 04, 2024

Introduction Understanding the PostgreSQL ORDER BY clause is essential for effectively organizing database query results. This tutorial will guide you through basic to advanced usage with practical code examples. Sorting Basics with......