Solved

SQL Context

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

776 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