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

2 Ways to Get the Size of a Database in PostgreSQL

Posted on November 12, 2021 by Ian

Below are two ways to return the size of a specific database in PostgreSQL.

Continue reading →
PostgreSQL how to

Subtract Microseconds from a Datetime Value in MariaDB

Posted on November 12, 2021 by Ian

Here are some options for subtracting one or more microseconds from a datetime expression in MariaDB.

Continue reading →
MariaDB dates, how to

JSON_VALUE() in MySQL

Posted on November 12, 2021 by Ian

In MySQL, the JSON_VALUE() function extracts a value from a JSON document at the specified path.

The function was introduced in MySQL 8.0.21.

Continue reading →
MySQL functions, json, what is

How to Format Negative Numbers with Angle Brackets in Oracle

Posted on November 11, 2021 by Ian

When using the TO_CHAR() function to format a number in Oracle Database, you can use the PR format element to return negative values inside angle brackets (<>).

Continue reading →
Oracle how to, number format

3 Ways to Format a Number as a Percentage in PostgreSQL

Posted on November 11, 2021 by Ian

We have several options if we want to display numbers with a percentage sign in PostgreSQL.

We can use the TO_CHAR() function to format the number along with the percentage sign. Or we can simply concatenate the number with the percentage sign, either with the CONCAT() function or with the concatenation operator.

Continue reading →
PostgreSQL how to, number format

Add a Percent Sign to a Number in MariaDB

Posted on November 11, 2021 by Ian

Below is a quick example of formatting a number as a percentage in MariaDB.

Continue reading →
MariaDB how to, number format

Add Leading Zeros in SQL

Posted on November 10, 2021March 11, 2022 by Ian

Below are examples of adding a leading zero to a number in SQL, using various DBMSs.

Continue reading →
Azure SQL Edge, MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server how to, number format

Format a Number as a Percentage in Oracle

Posted on November 10, 2021 by Ian

Even though Oracle Database has a TO_CHAR(number) function that allows us to format numbers, it doesn’t provide a format element for the percentage sign.

Therefore, if we want to format a number as a percentage in Oracle Database, we need to concatenate the percentage sign and the number.

Continue reading →
Oracle how to, number format

Format a Number as a Percentage in MySQL

Posted on November 10, 2021 by Ian

In MySQL, we can format a number as a percentage by concatenating the number with the percent sign.

The CONCAT() function concatenates its arguments. We can pass the number as the first argument, and the percent sign as the second.

Continue reading →
MySQL how to, number format

2 Ways to Add a Percent Sign to a Number in SQLite

Posted on November 9, 2021March 11, 2022 by Ian

Here are two ways to format a number as a percentage in SQLite.

Continue reading →
SQLite how to, number format
  • «
  • 1
  • …
  • 171
  • 172
  • 173
  • 174
  • 175
  • …
  • 389
  • »

About Database.Guide | Privacy Policy