Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a view that returns the foll

Status
Not open for further replies.

WaveOut

Programmer
Sep 6, 2002
42
US
I have a view that returns the following:

select * from latest_report

projectname contractor_name date
Barry O&M Vulcan 01/01/2007
Barry O&M Vulcan 02/01/2007
Barry O&M Vulcan 03/01/2007
Smith O&M PCI 01/01/2007
Smith O&M PCI 02/01/2007
Smith O&M PCI 03/01/2007


I need it to return the ones with the largest date:

Barry O&M Vulcan 03/01/2007
Smith O&M PCI 03/01/2007

I tried:
select projectname, contractor_name, max(start_date) from latest_report

but that does not work. Any ideas?

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top