Solved

SQL Context

Posted on 2011-02-11
5
238 Views
Last Modified: 2012-05-11
I have a table with records of buildings and their inspection dates.  Some buildings have been inspected multiple times.  I want to return each building and the latest inspection date.  Not sure if distinct and max are the ways to return each building once and the largest building date.  Any help would be appreciated.
0
Comment
Question by:mounty95
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:jmro20
ID: 34874757
Try this:
0
 

Author Comment

by:mounty95
ID: 34874775
Nothing there to try...
0
 
LVL 3

Accepted Solution

by:
jmro20 earned 500 total points
ID: 34874792
The work didnt show, so i used an image SQL Code
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34874812
that would work, in this article are other options:
http://www.experts-exchange.com/A_3203.html
0
 

Author Closing Comment

by:mounty95
ID: 34874822
Thank you very much!!!!!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now