Solved

TRAINING DATABASE

Posted on 2014-12-11
2
106 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
2 Comments
 
LVL 33

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 51

Assisted Solution

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

777 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