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 LAST_VALUE

January 3, 2024
| No Comments
| MySQL

The MySQL LAST_VALUE window function is used to retrieve the value of an expression from the last row within a specified window frame. The window frame is a group of rows that are considered together for calculations. The LAST_VALUE function is particularly useful for analyzing trends and identifying patterns in data. Syntax The general syntax […]

Read More »

MySQL FIRST_VALUE

January 3, 2024
| No Comments
| MySQL

The MySQL FIRST_VALUE function is a window function that allows you to retrieve the first value in an ordered set of rows within a partition. This function is often used in conjunction with the OVER clause to define the window frame for the operation. Syntax Here is the basic syntax of the FIRST_VALUE function: FIRST_VALUE(expression) […]

Read More »

MySQL RANK

January 3, 2024
| No Comments
| MySQL

The MySQL RANK function is used to assign a rank to each row within the result set of a query based on the values of one or more columns. It is commonly used in scenarios where you want to determine the rank of each row relative to others, such as in competitions, rankings, or leaderboards. […]

Read More »

MySQL DENSE_RANK

January 3, 2024
| No Comments
| MySQL

The MySQL DENSE_RANK function is used to assign a unique rank to each distinct row within a result set based on the specified column or columns. Unlike the RANK function, DENSE_RANK does not leave gaps in the ranking when there are ties. If two or more rows have the same values for the ordering columns, […]

Read More »

MySQL CUME_DIST

January 3, 2024
| No Comments
| MySQL

The MySQL CUME_DIST function is used to calculate the cumulative distribution of a set of values within a group of rows. It represents the relative position of a specified value within the group, considering the sorted order of the values. The result is a value between 0 and 1, indicating the cumulative distribution of the […]

Read More »

MySQL IS NOT NULL

January 3, 2024
| No Comments
| MySQL

In MySQL, the IS NOT NULL comparison function is used to filter and retrieve records from a database where a specific column does not contain NULL values. NULL is a special marker used in databases to represent the absence of data in a particular field. The IS NOT NULL condition is often used in conjunction […]

Read More »

Posts pagination

Previous 1 … 15 16 17 … 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.