The aliases in MySQL may be used to improve readability of the queries. There are two kinds of aliases supported by MySQL, and these are:
column alias
tabl...
Very often we might retrieve duplicate values from our records. In order to "see" only distinct records we can use the DISTINCT operator. The basic syntax for DISTINCT op...
How to search through database?
A simple way of creating searching queries is by using the LIKE operators. In broader terminology, the LIKE operators are used to...
The IN operator is used to determine if a specified value matches any values returned by the query. The IN operator may be used with all main statements such as
The ANY and ALL operators allow you to perform a comparison between a single column value and a range of other values. In particular, the ANY operator will return a result if the o...
The IS NULL and IS NOT NULL operators are very useful in verifying if the returned value is a NULL type, or a valid one. Sometimes these NULL values will result in errors if not filtered properly a...
In order to combine two or more result sets into one, and thus increase readability and speed up querying, the UNION operator may be used.
Syntax
The basic syntax...