# MySQL

MySQL Examples and Tutorials

## MySQL ACOS() – Easy way to find the arc cosine of a value

In this tutorial, we will study the MySQL ACOS() function. In maths, you must have come across the function – acos. The arc cosine of a number x is the inverse cosine function of x where x is a number between -1 and 1. It returns the angle whose cosine is a given number. Arc …

## MySQL BIN(), OCT() and HEX() Functions

In this tutorial, we will learn about the MySQL BIN(), OCT() and HEX() functions. As you would have known by now, computers do not understand the language of humans. They only understand 0s and 1s. Numbers in the computer language often have a base or radix, such that all numbers present in that number system …

## MySQL DAY(), MONTH() and YEAR() – Date Functions in MySQL

In this tutorial, we will study the MySQL DAY(), MONTH() and YEAR() functions. The DAY(), MONTH() and YEAR() functions are a part of the date functions in MySQL. The DAY() function is used to return the day of a month for a given date. As expected, the returned value is a numerical value from 1 …

## MySQL INNER JOIN

In this tutorial, we will study the MySQL INNER JOIN. First of all, let us start with what a join is. A join is used to combine two or more tables using a commonly related column between them. Suppose if you have an ‘OrderDetails’ table and a ‘Products’ table then you can create a join …

## MySQL LOG2() and LOG10() Functions

In this tutorial, we will study the MySQL LOG2() and MySQL LOG10() functions. In a previous article, we studied about the MySQL LN() function which finds the natural logarithm (base e) of a number. While studying maths, you must have also come across finding the logarithm to the base 2 or 10 of a number …

## MySQL TAN() – How to find the tangent of an angle in MySQL?

In this tutorial, we will learn about the MySQL TAN() function. While studying high school mathematics, you must have studied how to find the tangent of an angle. Finding the tangent of an angle is an important trigonometric operation that finds use in mathematics, physics, and so on. Recommended read – MySQL SIN() – MySQL …

## MySQL COS() Function – How to find the cosine of angles in MySQL?

In this tutorial, we will learn about the MySQL COS() function. While studying high school mathematics, you must have studied how to find the cosine of an angle. Finding the cosine of an angle is an important trigonometric operation which finds use in mathematics, physics and so on. Recommended read – MySQL SIN() to find …

## MySQL RADIANS() and DEGREES() [With Easy Examples]

In this tutorial, we will study the MySQL RADIANS() and MySQL DEGREES() functions. You must have come across radians and degrees as the two measures of angles in mathematics. The measures of angles are fundamental to geometry. Recommended read – MySQL SIN() and MySQL ASIN() functions Seeing this need, MySQL provides us with two functions …

## MySQL LN() Function – Easily find the natural logarithm of a number in MySQL

In this tutorial, we will learn about the MySQL LN() function. While studying maths, you must have come across the operation – loge (logarithm to the base of the mathematical constant e). Finding the loge of a number is also known as finding the natural logarithm of a number. Logarithm, in general, is a widely …

## MySQL ASIN() – Find the arcsine of a number in MySQL

In this tutorial, we will study the MySQL ASIN() function. In maths, you must have come across the function – asin. The arcsine of a number x is the inverse sine function of x where x is a number between -1 and 1. Like all other trigonometric operations, asin is widely used and that’s why …