Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Select distinct latest records

$
0
0

RecordDatestatusPlace

2014-05-29 10:34:31.850YESK126 - J.H.S 126 John Ericsson

2014-05-29 10:34:52.427YESK131 - P.S. 131

2014-05-29 10:36:12.323YESK258 - I.S. 258 David Ruggles

2014-05-29 10:36:31.390NOK400 - Lafayette High School

2014-05-29 10:36:47.543YESK460 - John Jay High School

2014-05-29 10:37:06.050NOK480 - Bushwick Educational Campus

2014-05-29 10:37:27.520NOK486 - I.S. 187 Christa McAuliffe School

2014-05-29 10:38:58.823NOM153 - P.S. 153 Adam Clayton Powell

2014-05-29 10:47:08.580YESM153 - P.S. 153 Adam Clayton Powell

2014-05-29 10:47:29.517YESK400 - Lafayette High School

2014-05-29 10:47:38.487YESK480 - Bushwick Educational Campus

2014-05-29 10:47:59.067YESK486 - I.S. 187 Christa McAuliffe School

This is my table as it stands...

It comes from a left outer join over two tables...

You will notice that for some places there are two records...

I want to be able to show each record distinctly with only its latest status...

Any help appreciated...

Thanks...


Dhananjay Rele



Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>