Solved

TRAINING DATABASE

Posted on 2014-12-11
2
109 Views
Last Modified: 2014-12-11
I HAVE A TRAINING DATABASE WITH THREE FIELDS, EMPID, DOCNAME, REV #, I ONLY WANT TO SEE THE LATEST REV THAT SOMEONE IS TRAINED TO.
0
Comment
Question by:Spikemom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Mike Eghtebas earned 250 total points
ID: 40494403
Select [FIELDS], [EMPID], [DOCNAME], Max([REV #]) From Tavle1 Group By [FIELDS], [EMPID], [DOCNAME]

post some samples for  [REV #] field to make sure
0
 
LVL 55

Assisted Solution

by:Huseyin KAHRAMAN
Huseyin KAHRAMAN earned 250 total points
ID: 40494404
try this:

select t.* 
from training as t
inner join (select EMPID, max(REV) as maxrev from training group by EMPID) as tm
where t.empid=tm.empid and t.rev=tm.maxrev

Open in new window


(..) may be necessary, not sure

select t.* 
from (training as t
inner join (select EMPID, max(REV) as maxrev from training group by EMPID) as tm)
where t.empid=tm.empid and t.rev=tm.maxrev

Open in new window

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question