How to Calculate Age in MariaDB

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.

Read more

How to Install Windows 10 on an M1 Mac for Free

In 2020, Apple introduced Mac computers with Apple silicon, with the first chip being the Apple M1.

This was a major change, and it affected many third party applications to the point where they simply don’t run on the M1 Mac.

One application that doesn’t run on M1 Macs is VirtualBox. Prior to the M1 Mac, we could use VirtualBox to install Windows on our Mac. VirtualBox is a free virtualisation application that enables you to install virtual machines (with other operating systems) on your Mac.

Fortunately, there’s a free alternative to VirtualBox – UTM.

Read more

How to Check the Date Format of your Oracle Session

When working with functions that return dates, Oracle Database returns these dates based on the value of the NLS_DATE_FORMAT parameter.

There is also an NLS_TIMESTAMP_FORMAT parameter and an NLS_TIMESTAMP_TZ_FORMAT parameter, both of which have a datetime format mask that can be specified separately.

All of these parameters have their default values derived from the NLS_TERRITORY parameter (which by default, is operating system-dependent).

Read more

How to Check the Values of the NLS Parameters in Oracle Database

In Oracle Database, the NLS (National Language Support) parameters determine the locale-specific behaviour on both the client and the server.

These parameters can be set in various places, such as at the database level, in an initialization parameter file, in environment variables, at the session level, and even within some functions.

You can check the value of the NLS parameters with the following views.

Read more

Methods of Setting NLS Parameters and their Priorities (Oracle Database)

Oracle Database includes a bunch of NLS (National Language Support) parameters that determine the locale-specific behaviour on both the client and the server.

These NLS parameters can be set in various places, each of which has a predetermined precedence order in relation to the others. The following table outlines these methods, as well as their priority in relation to the others.

Read more