Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6155767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:29:37+00:00 2026-05-23T20:29:37+00:00

With Denali’s CTP 3 release , we have more analytical functions out of which

  • 0

With Denali’s CTP 3 release , we have more analytical functions out of which I am interested in two:

a) First_Value
b) Last_Value

I understood that FIRST_VALUE returns first value based on partition and order by clause while Last_Value returns last value based on partition and order by clause.

But in what practical situation they will be useful? A sample real time situation will help me understand this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:29:37+00:00Added an answer on May 23, 2026 at 8:29 pm

    These functions can help you get other information from the resultset without using complicated self-joins, derived tables, etc. For example, let’s say you have twenty forum messages in a table, and you want to know who started the thread, and who posted the last response. They are ordered by date/time, so while MIN() & MAX() can help you identify when the first & last posts occurred, they can’t tell you who those authors were unless you went out and got that additional information somehow. Even that can be complicated – if you don’t have a natural or artificial key column for example (you could join on an identity column), you might be tempted to join on the date/time values, which are not guaranteed to be unique…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been researching, SQL Server 2012 (aka Denali) and Microsoft has a pre-release
I know that among the various functions introduced in Denali CTP 3, there are
In SQL Server 2012 (Denali), we have a new feature Sequence . Consider the
I have worked with various versions of MS SQL Server including 2000,2005,2008,R2,(Some)Denali. I have
Currently, working with RC0 Denali, having some issues I am attempting to review data
I thought I read somewhere that in 'denali' we would be able to place
Currently, working with Denali RC0 and unable to add BI Time Intelligence to the
I am working on SQL Server 2008R2 and 2012 Denali Monitoring Project in this
for SQL Server 2008 R2 I have a resultset that looks like this (note
Does anyone know how to set Invoke-SqlCmd QueryTimeout more than 65535? Microsoft said that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.