Skip to content

MySQL Tutorial

Learn MySQL

Menu
  • Home
  • Data types
  • Functions
    • Aggregate Functions
    • Cast Functions
    • Comparison Functions
    • DATE Functions
    • Flow Control Functions
    • Math functions
    • String Functions
    • Window Functions
    • REGEXP Functions
    • JSON Functions
    • XML Functions
    • Information Functions
    • Encryption Functions

Category: MySQL

Learn MySQL Tutorial

MySQL LEAST

January 3, 2024
| No Comments
| MySQL

The MySQL LEAST function is part of comparison functions and is used to find the smallest or minimum value among a list of expressions. It is particularly useful when you have multiple values and you want to retrieve the smallest one. The LEAST function takes two or more arguments, and it returns the smallest value […]

Read More »

MySQL GREATEST

January 3, 2024
| No Comments
| MySQL

The MySQL GREATEST function is used to retrieve the highest value from a list of expressions. It takes multiple arguments and returns the maximum value among them. It plays a crucial role in data analysis and manipulation, enabling you to identify the highest numerical value within a collection of data points. Whether you’re dealing with […]

Read More »

MySQL COALESCE

January 3, 2024
| No Comments
| MySQL

The MySQL COALESCE function is a useful comparison function for handling NULL values in queries. It allows you to replace NULL values with a specified alternative value. The primary purpose of COALESCE is to return the first non-NULL expression among its arguments. Syntax Here’s the syntax for the COALESCE function: COALESCE(expr1, expr2, …) expr1, expr2, […]

Read More »

MySQL NULLIF function

January 3, 2024
| No Comments
| MySQL

The NULLIF function in MySQL is used to compare two expressions. It returns NULL if the two expressions are equal; otherwise, it returns the first expression. The primary use case for NULLIF is to handle cases where you want to avoid division by zero or to handle situations where you want to treat specific values […]

Read More »

MySQL IFNULL function

January 3, 2024
| No Comments
| MySQL

The IFNULL function in MySQL is used to handle NULL values in a query by replacing them with a specified alternative value. This function is particularly useful when you want to display a default value or perform some other action if a column contains NULL. Syntax The basic syntax of the IFNULL function is as […]

Read More »

MySQL IF function

January 3, 2024
| No Comments
| MySQL

The MySQL IF function is a control flow function that allows you to perform conditional logic within a query. It is commonly used in SELECT statements to return different values based on a specified condition. Syntax The syntax for the MySQL IF function is as follows: IF(condition, value_if_true, value_if_false) condition: The expression that evaluates to […]

Read More »

Posts pagination

Previous 1 … 16 17 18 … 39 Next

MySQL tutorial

  • MySQL Database
  • MySQL Create table
  • MySQL Insert
  • MySQL Update
  • MySQL Delete
  • MySQL Select
  • MySQL From
  • MySQL Where
  • MySQL Order By
  • MySQL Select distinct
  • MySQL AND
  • MySQL OR
  • MySQL IN
  • MySQL NOT IN
  • MySQL BETWEEN
  • MySQL LIKE
  • MySQL LIMIT
  • MySQL EXISTS
  • MySQL GROUP BY
  • MySQL HAVING
  • MySQL IS NULL
  • MySQL Joins
  • MySQL INNER JOIN
  • MySQL LEFT JOIN
  • MySQL RIGHT JOIN
  • MySQL CROSS JOIN
  • MySQL SELF JOIN
  • MySQL ROLLUP
  • MySQL Subquery
  • MySQL UNION
  • MySQL UNION ALL
  • MySQL EXCEPT
  • MySQL CASE
  • MySQL IF-THEN-ELSE

Recent Posts

  • MySQL SUBDATE function
  • MySQL STR_TO_DATE function
  • MySQL convert string to date
  • MySQL datetime format
  • MySQL create temporary table
  • MySQL current datetime
  • MySQL TRUNCATE
  • MySQL SHOW EVENTS
  • MySQL ALTER EVENT
  • MySQL DROP EVENT

© MySQL Tutorial 2025.