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 (134)
  • 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)

How Acosd() Works in PostgreSQL

Posted on June 21, 2020June 21, 2020 by Ian

In PostgreSQL, acosd() is a mathematical function that returns the inverse cosine of the specified expression, measured in degrees.

The inverse cosine is also known as the arccosine.

Continue reading →
PostgreSQL functions, mathematical functions, what is

How Log() Works in PostgreSQL

Posted on June 20, 2020June 20, 2020 by Ian

In PostgreSQL, log() is a mathematical function that returns the base 10 logarithm of its argument.

However, it also allows you to optionally specify a base with which to use.

Continue reading →
PostgreSQL functions, mathematical functions, what is

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
  • «
  • 1
  • …
  • 290
  • 291
  • 292
  • 293
  • 294
  • …
  • 388
  • »

About Database.Guide | Privacy Policy