How to create a table in PostgreSQL

How to Create a Table In PostgreSQL Terminal

In this PostgreSQL, we will discuss How to Create a Table In PostgreSQL [Terminal + pgAdmin], for terminal psql which is an interactive terminal for interacting with the PostgreSQL database. Also, use the pgAdmin for creating the table which is the central hub for database management tasks. How to Create a Table In PostgreSQL Let … Read more >>

How to Drop a Database in MongoDB

Drop Database in MongoDB Using Compass By Confirming Database Name

Knowing how to drop a Database in MongoDB is essential for every developer. This tutorial shows you how to drop specified databases from the MongoDB server using different methods. Drop Database in MongoDB You can drop a database in MongoDB in two ways: first, using the MongoDB shell and second, using the MongoDB compass, a … Read more >>

How to Create a Database in MongoDB

Create a Database in MongoDB Shell - Creating Collection

Creating a Database is the first step, where all the specific information is stored, so it is necessary to know how to create a database in MongoDB. This beginner-level tutorial shows you how to create a database in MongoDB using two methods. As a database developer, you will usually use both the command line and … Read more >>

How To Install MongoDB Compass

How To Install MongoDB Compass on macOS

Using the MongoDB shell can be boring from a user experience perspective, but what will happen if you have a GUI for MongoDB? You will be able to manage each piece of data easily, like creating collections and documents and inserting or retrieving data visually. So in this MongoDB tutorial, you will learn how to … Read more >>

Is MongoDB a Relational Database

Is MongoDB a Relational Database

If you have questions about “Is MongoDB a relational or non-relational database?” I have you covered. Here, I have explained in detail whether MongoDB is relational or non-relational. Additionally, you will understand how the MongoDB database works, its history, and its advantages. You will also understand some terminology in MongoDB, like collection documents and how … Read more >>

How to return a table in PostgreSQL function

Returning Record using PostgreSQL Function

In this PostgreSQL tutorial, I will demonstrate how to return table from function in PostgreSQL function. You will understand the syntax of the function, and you will also create a simple function to know how you can define your function with different parameters. How to return a table in PostgreSQL function Sometimes, you need to write … Read more >>

PostgreSQL Add Foreign Key If Not Exists

PostgreSQL Add Foreign Key If Not Exist Registrations to Courses

In this PostgreSQL tutorial, you will learn how to add a foreign key if it does not exist in PostgreSQL, where you will understand why you need to add the foreign key to tables. Also, you will use the PL\PGSQL with the table pg_constraint to check whether the existing table has a foreign key or … Read more >>

PostgreSQL GROUP BY: Multiple Columns, HAVING and ORDER BY

PostgreSQL GROUP BY query with count and sum per category in PostgreSQL 18

PostgreSQL GROUP BY puts rows that share a value into one group, and an aggregate such as count() or sum() returns one number per group: Kitchen leads with $424.00. I ran every query here in psql on PostgreSQL 18.6, the 64-bit Windows build: The sample orders and customers tables Ten orders, August to October 2026, … Read more >>

How to Use Postgresql Having Clause

Postgresql Having Clause with Count()

In this PostgreSQL tutorial, I will show you how to use PostgreSQL Having clause where you will learn how to filter the aggregated result using the HAVING clause based on the given condition. Additionally, I will show how to use different aggregate functions such as count(), sum(), min(), and max() along with the HAVING clause. … Read more >>

How to Delete Row in PostgreSQL

How to Delete Multiple Rows in PostgreSQL

In this PostgreSQL tutorial, I will teach you how to delete row in PostgreSQL. Also, you will learn about deleting a single row or multiple rows from the table. Then at the end, I will show you how to return the deleted rows from the table and also how to delete all the rows from … Read more >>