About 604,000 results
Open links in new tab
  1. SQL FIRST_VALUE Function

    This tutorial shows you how to use the SQL FIRST_VALUE () function to return the first value in an ordered set of values.

  2. FIRST_VALUE (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · The following example uses FIRST_VALUE to return the employee with the fewest number of vacation hours compared to other employees with the same job title. The …

  3. FIRST_VALUE - Oracle Help Center

    FIRST_VALUE is an analytic function. It returns the first value in an ordered set of values. If the first value in the set is null, then the function returns NULL unless you specify IGNORE …

  4. FIRST_VALUE - Snowflake Documentation

    When the current row is the very first row in the window frame, there is no preceding row to reference, so FIRST_VALUE returns a NULL for that row. Frame boundaries sometimes …

  5. How to find first value from any table in SQL Server

    Jul 23, 2025 · We could use FIRST_VALUE () in SQL Server to find the first value from any table. FIRST_VALUE () function used in SQL server is a type of window function that results in the …

  6. SQL FIRST_VALUE Function - LearnSQL.com

    May 13, 2024 · The FIRST_VALUE function is an important SQL window function. It is useful for analyzing trends over time, such as seeing how stock prices or sales figures start out over a …

  7. FIRST_VALUE – SQL Tutorial

    In summary, the SQL FIRST_VALUE () function is a powerful window function that enables you to retrieve the first value of an ordered set of values within a group. By using this function, you …

  8. How to Use the FIRST_VALUE () Function in SQL Server

    Sep 7, 2023 · In SQL Server, FIRST_VALUE() is a window function that returns the first value in an ordered set of values. Basically, we can use it to get a value from the first row of a query …

  9. FIRST_VALUE () in SQL: Examples, Use Cases & Error Handling

    Discover how to use the FIRST_VALUE () function in SQL with examples, common use cases, and error handling tips to optimize your queries.

  10. Oracle FIRST_VALUE Function

    Summary: in this tutorial, you will learn how to return the first value in an ordered set of values by using the Oracle FIRST_VALUE() function. The FIRST_VALUE() is an analytic function that …