MySQL LEFT JOIN

MySQL LEFT multiple

MySQL LEFT JOIN combines two tables and returns the matched records from both tables and unmatched records from the “left” table.

The “IFs” in MySQL

MySQL IF

MySQL has two types of IFs: one is the IF statement while other is the IF function. In this tutorial, I will explain the difference and show you examples of MySQL IF

MySQL CASE

MySQL CASE

If you have a little idea about how if..else..elseif statement works in different programming languages then understanding the MySQL CASE function should be straight-forward.

MySQL COUNT Function

MySQL COUNT

The COUNT function in MySQL returns the total count of rows returned by SELECT statement. You may use it with the simple SELECT statement to get the count of all rows as single number.

MySQL ORDER BY Clause

MySQL ORDER BY

The ORDER BY clause is used to sort the record-set in ascending or descending order. A few points about the MySQL ORDER BY clause:

MySQL GROUP BY Clause

MySQL GROUP BY MAX

The purpose of the GROUP BY clause is to get summarized view of the database table(s). MySQL GROUP BY is used to group the rows with the same values

MySQL DATEDIFF Function

MySQL DATEDIFF table

The MySQL DATEDIFF function returns the number of days between two given dates. The DATEDIFF takes two arguments as shown in the example below..