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
Suppress Message Box when creating output file
Active Directory was unable to establish a connection with the global catalog
Server 2008 Backup
Add a button to an Excel Spreadsheet
MS Access 2003- The Microsoft Jet database engine could not find the object 'MSysDb'.
sql server login
Where and how can i use silent switches for a MSI file in the group policy.
Error "windows cannot access the specified device path, or file. you may not have the appropriate permissions to access them"
Format the Expression with Hyphen
Backup and restore of Win2k Server to a different machine