Database.Guide

Skip to content

Beginners

  • What is a Database?
  • Database Tutorial

SQL

  • SQL Tutorial
  • SQL Reference
  • SQL Joins Tutorial
  • SQL Transactions Tutorial
  • Basic SQL Queries

Categories

  • Azure SQL Edge (17)
  • Database Concepts (99)
  • Database Tools (72)
  • DBMS (9)
  • DuckDB (128)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,169)
  • SQLite (298)

Category: DBMS

Database Management Systems

How the Ln() Function Works in PostgreSQL

Posted on June 19, 2020June 19, 2020 by Ian

In PostgreSQL, ln() is a mathematical function that returns the natural logarithm of its argument.

Continue reading →
PostgreSQL functions, mathematical functions, what is

How the Exp() Function Works in PostgreSQL

Posted on June 19, 2020June 19, 2020 by Ian

In PostgreSQL, exp() is a mathematical function that returns the exponential value of its argument.

Continue reading →
PostgreSQL functions, mathematical functions, what is

Get the Century from a Date in PostgreSQL

Posted on June 19, 2020January 28, 2021 by Ian

In Postgres, you can use the to_char() function to return the century, based on a given date.

To do this, use CC as the second argument. This returns the two-digit century based on the date provided.

Continue reading →
PostgreSQL date format, dates, how to

How to Create Ordinal Numbers in PostgreSQL

Posted on June 18, 2020June 18, 2020 by Ian

In PostgreSQL, you can use the to_char() function to output numbers in a given format. This includes appending the number with the ordinal indicator.

For example 1, 2, 3 becomes 1st, 2nd, 3rd.

Continue reading →
PostgreSQL how to, number format

How Pi() Works in PostgreSQL

Posted on June 17, 2020June 17, 2020 by Ian

In PostgreSQL, the pi() function returns the number π.

Ï€ constant is a mathematical constant. It is defined as the ratio of a circle’s circumference to its diameter.

Continue reading →
PostgreSQL functions, mathematical functions, what is

How the Degrees() Function Works in PostgreSQL

Posted on June 17, 2020June 17, 2020 by Ian

In PostgreSQL, the degrees() function converts from radians to degrees.

The radian is the SI (International System of Units) unit for measuring angles. One radian is just under 57.3 degrees, and a full circle has just over 6.28 radians (2Ï€).

Continue reading →
PostgreSQL functions, mathematical functions, what is

How the Radians() Function Works in PostgreSQL

Posted on June 17, 2020June 17, 2020 by Ian

In PostgreSQL, the radians() function converts from degrees to radians.

The radian is the SI (International System of Units) unit for measuring angles. One radian is just under 57.3 degrees, and a full circle has just over 6.28 radians (2Ï€).

Continue reading →
PostgreSQL functions, mathematical functions, what is

How Trunc() Works in PostgreSQL

Posted on June 17, 2020June 17, 2020 by Ian

In PostgreSQL, the trunc() function truncates a number.

More specifically, it truncates the number either toward zero, or to a specific number of decimal places.

Continue reading →
PostgreSQL functions, mathematical functions, what is

Add the Ordinal Indicator to a Date in PostgreSQL

Posted on June 17, 2020January 28, 2021 by Ian

The PostgreSQL to_char() function provides us with the option of adding the ordinal number suffix to the result.

This means we can add the ordinal indicator when formatting dates.

For example, instead of outputting 10 Feb we could output 10th Feb.

Continue reading →
PostgreSQL date format, dates, how to

Install Postgres.app on a Mac

Posted on June 16, 2020November 9, 2020 by Ian

The easiest way to install PostgreSQL on a Mac is by installing Postgres.app. Postgres.app is a full-featured PostgreSQL installation packaged as a standard Mac application.

You simply download it and drag it to your Applications folder, just like with any other application.

Continue reading →
PostgreSQL how to, install
  • «
  • 1
  • …
  • 272
  • 273
  • 274
  • 275
  • 276
  • …
  • 367
  • »

About Database.Guide | Privacy Policy