?
Solved

TRAINING DATABASE

Posted on 2014-12-11
2
Medium Priority
?
110 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 1000 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 57

Assisted Solution

by:HainKurt
HainKurt earned 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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…
Suggested Courses

801 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