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 (161)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,170)
  • SQLite (299)

Category: DBMS

Database Management Systems

How to Install Oracle Database on Windows

Posted on August 29, 2021 by Ian

Below are the steps I used to install Oracle Database 18c XE on Windows 10.

Oracle Database 18c XE is the free Express Edition of Oracle. This is a good entry point into Oracle Database. XE is a regular Oracle Database, and it therefore provides compatibility with other Oracle Database editions. You can always move to another edition if you ever need to.

Continue reading →
Oracle how to, install

Fix: “the leading precision of the interval is too small” in Oracle Database

Posted on August 29, 2021 by Ian

If you’re trying to use an interval literal in Oracle, but you keep getting the “leading precision of the interval is too small” error, hopefully this helps.

Continue reading →
Oracle errors, how to

How to Get the Day Name from a Date in Oracle

Posted on August 28, 2021 by Ian

With Oracle Database, we can use the TO_CHAR(datetime) function to return a datetime value, formatted in a way that we specify.

We can use this function to return the day name from a date (as well as any other parts of the datetime value).

Continue reading →
Oracle date format, dates, how to

BIN_TO_NUM() Function in Oracle

Posted on August 28, 2021 by Ian

In Oracle Database, the BIT_TO_NUM() function converts a bit vector to its equivalent number.

Continue reading →
Oracle conversion functions, functions, what is

How to Calculate Age in MariaDB

Posted on August 27, 2021 by Ian

In MariaDB, you can use the TIMESTAMPDIFF() function to calculate a person’s age (or the age of anything for that matter).

TIMESTAMPDIFF() is a built-in date and time function that returns the difference between two date or datetime expressions. Passing YEAR as the first argument, date of birth as the second argument, and the current date as the third, will return the age in years.

Continue reading →
MariaDB dates, how to

ASCIISTR() Function in Oracle

Posted on August 27, 2021 by Ian

In Oracle Database, the ASCIISTR() function returns an ASCII version of the given string in the database character set. 

Continue reading →
Oracle conversion functions, functions, what is

2 Ways to Get the Day from a Date in Oracle

Posted on August 26, 2021August 26, 2021 by Ian

Below are two functions that can be used to return the day from a date in Oracle Database.

Continue reading →
Oracle date format, date functions, dates, how to

Fix “Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!”

Posted on August 25, 2021 by Ian

I recently tried to install QEMU on my M1 Mac but received the “Cannot install in Homebrew on ARM processor in Intel default prefix” error.

Here’s how I fixed the issue.

Continue reading →
Oracle errors, how to

Oracle Datetime Functions (Full List)

Posted on August 25, 2021 by Ian

Below is a full list of datetime functions available in Oracle Database.

Continue reading →
Oracle date functions, reference

TRUNC(date) Function in Oracle

Posted on August 25, 2021 by Ian

In Oracle Database, the TRUNC(date) function returns the given date value with the time portion of the day truncated to the unit provided in the specified format model.

Oracle also has a TRUNC(number) syntax, which is used on numbers. This article is solely about the TRUNC(date) syntax, which is used on dates.

Continue reading →
Oracle date functions, functions, what is
  • «
  • 1
  • …
  • 176
  • 177
  • 178
  • 179
  • 180
  • …
  • 370
  • »

About Database.Guide | Privacy Policy