Solved

SQL Context

Posted on 2011-02-11
5
243 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 143

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

829 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