Solved

SQL Context

Posted on 2011-02-11
5
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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.

622 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