PostgreSQL Cast Int

PostgreSQL cast int to float

In this PostgreSQL tutorial, we will learn about “PostgreSQL cast int” using different data types or functions and casting or converting from int to another data type, such as boolean, float, timestamp, etc. PostgreSQL Cast Int When data is stored in a PostgreSQL database, we want to convert the data type of a value or column in the table into … Read more >>

Postgres Min Function

Postgresql min with condition

In this PostgreSQL tutorial, I will show you how to use the Postgres Min Function with SELECT, GROUP BY, and HAVING clauses. You will also understand how to use the min() function with a subquery and multiple columns. Postgres Min Function PostgreSQL’s MIN() function finds the minimum value from the set of values. It is an aggregate function that … Read more >>

PostgreSQL change column data type

postgresql change column data type from integer to var

In this PostgreSQL tutorial, we will learn how to change column type in PostgreSQL from one data type to another. PostgreSQL change column data type Suppose you are an employee of XYZ company in the USA, and in front of you is a situation to change the data type of a column of a database. So, … Read more >>

How to find primary column name in Postgresql

How to get primary key column name in Postgresql

In this Postgresql tutorial, we will learn about “How to find primary column name in Postgresql“, primary columns are columns that uniquely identify each record in the table. And we will cover the following. How to find primary key column name in Postgresql In Postgresql, to get the primary key column name, we need to … Read more >>

PostgreSQL CASE Multiple Columns

PostgreSQL CASE Multiple Columns Simple CASE

In this PostgreSQL tutorial, we will learn about PostgreSQL CASE Multiple Columns with different examples such as using the simple and searched CASE. What are PostgreSQL CASE Multiple Columns? Similar to IF-THEN-ELSE statements in other programming languages, the CASE statement in PostgreSQL expresses a condition. It allows us to conditional login in SQL queries, which … Read more >>

PostgreSQL INSERT Multiple Rows

PostgreSQL INSERT Multiple Rows

In this PostgreSQL tutorial, we will discuss how to insert multiple rows in PostgreSQL in a single statement. PostgreSQL INSERT Multiple Rows You can insert more than one row at a time in a single statement in PostgreSQL by specifying comma-separated multiple-row values in value list form as VALUES in the INSERT INTO statement. Syntax To insert multiple rows in PostgreSQL, follow … Read more >>

MongoDB date format – Complete Tutorial

MongoDB date format dd-mm-yyyy

In this MongoDB tutorial, we are going to learn “MongoDB date format” with examples. We will cover this by implementing different operations with examples. The following list topics we are going to cover in this tutorial: MongoDB date format query The date query in MongoDB displays the current date as a string in the mongo shell. The current … Read more >>

MongoDB return specific fields

MongoDB return specific fields with any value

In this MongoDB tutorial, we are going to learn about MongoDB return specific fields with a few examples. We will cover this by executing various operations with examples. The following index topics we are going to cover in this tutorial: MongoDB query return specific fields MongoDB provides the find() method that is used to select documents in … Read more >>