Solved

TRAINING DATABASE

Posted on 2014-12-11
2
108 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 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 52

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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