MySQL

MySQL Examples and Tutorials

MySQL SQRT() – Easy Way to Find the Square Root with MySQL

In this tutorial, we will learn about the MySQL SQRT() function. In high school maths, you must have come across exercises involving finding the square root of a number. Furthermore, square root finds applications across geometry, calculus, statistics, physics and many other domains which makes it one of the essential mathematical operations. For this reason […]

MySQL SQRT() – Easy Way to Find the Square Root with MySQL Read More »

MySQL FIELD() and ELT()

In this tutorial, we will learn about the MySQL FIELD and ELT functions. The FIELD() function is used to return the position of value from a list of values. FIELD() is a case-insensitive function.  The ELT() function does the exact opposite of the FIELD() function. It is used to return the value at a given

MySQL FIELD() and ELT() Read More »

MySQL SUBSTRING() and SUBSTR() Functions – How to extract substrings in MySQL?

In this tutorial, we will learn about the MySQL SUBSTRING() and SUBSTR() functions. Both functions do the same thing but have different names. SUBSTRING() and SUBSTR() are used to extract a substring from a given string from a given position. You may also specify the number of characters you wish to extract into the substring.

MySQL SUBSTRING() and SUBSTR() Functions – How to extract substrings in MySQL? Read More »