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
Need help getting started with n-tier design in asp.net 3.5
Non-proportional spacing in MS_Word
SQL select problem, if and only if using SQL 2005
Excel - when I change data from numeric in cell it gives error message
Can i make a field that will store any changes i make to other fields on a microsoft access form?
Splash form for registration status using KeyedAccess
Outlook HTML signature issue
Table Long datatype and ADO adInteger parameter datatype
binding items collection of several comboBoxes to the Values in a specified column of the table
SBS 2008 Remote Web Workspace getting 10009 and continously prompting users for password, not letting them into there PCs