Microsoft
Software
Hardware
Network
Question : Access query to select highest number in field
I have a table in MS Access 2007 comprised of four fieldsjob, job name, pay end date and hours. I would like to create a query to select for each job the single pay end date with the most hours in the simplest manner. Any help would be greatly appreciated.
Answer : Access query to select highest number in field
Try this:
SELECT t1.job, t1.jobname, t1.payend_dt, t1.SumOfglhours
FROM tblJobHrs t1 INNER JOIN
(SELECT t2.job, Max(t2.SumOfglhours) AS MaxHrs
FROM TblJobHrs t2
GROUP BY t2.job) AS z ON t1.job = z.job And t1.SumOfglhours = z.MaxHrs
ORDER BY t1.job
Random Solutions
421 4.2.1 unable to connect for some domains
Outlook 2007 Calendar printing
How do I check if a table exists, before creating the table...
VBA Powerpoint 2003/2007 - Align text inside a textbox/Shape
How to troubleshoot a Windows 7 memory leak?
IIS generates 500 Internal Server Error when using PHP to connect to MySQL
using VCOPY
error 429 ActiveX component can't create object
Write Excel Data to Access via ADO - Possible Database Sharing Conflict
Can I have my text boxes borders visible in form design and not visible during printing