Advertisement

06.13.2008 at 11:46AM PDT, ID: 23483723
[x]
Attachment Details

How can I get only the latest timestamp? Please find example in hte question body.

Asked by DocZito in MS SQL Server, SQL Server 2005

Tags: T-SQL

Hello
I have a table with a lot of rows and every row has a timestamp:

machine1 / part1 / 01-01-2008
machine1 / part1 / 02-01-2008
machine1 / part1 / 03-01-2008
machine1 / part2 / 01-01-2008
machine1 / part2 / 04-01-2008
machine2 / part1 / 03-01-2008
machine2 / part1 / 02-01-2008
machine2 / part2 / 01-01-2008

and so on

Is there a way to get only the newest entry for every machine-part combination?

I hope this question is understandable.

Thank you.Start Free Trial
 
Keywords: How can I get only the latest timestamp…
 
Loading Advertisement...
 
[+][-]06.13.2008 at 11:48AM PDT, ID: 21781698

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Server 2005
Tags: T-SQL
Sign Up Now!
Solution Provided By: aneeshattingal
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628