Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

SQL Context

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
mounty95
Asked:
mounty95
  • 2
  • 2
1 Solution
 
jmro20Commented:
Try this:
0
 
mounty95Author Commented:
Nothing there to try...
0
 
jmro20Commented:
The work didnt show, so i used an image SQL Code
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
that would work, in this article are other options:
http://www.experts-exchange.com/A_3203.html
0
 
mounty95Author Commented:
Thank you very much!!!!!
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now