Advertisement

07.10.2008 at 07:56AM PDT, ID: 23553987
[x]
Attachment Details

Max(date) query: what's most efficient design/approach

Asked by deedub84 in Microsoft Access Database

Tags: MS Access 2003

I have a table of test dates and scores as follows:

EmpID
TestType
TestDate
TestScore
Subject

There are 3 types of tests that employees need to take yearly, potential in 2 or 3 subjects.

I need a query that will show:

EmpID, Subject, TypeA: latest test date, TypeA: latest test score, TypeB: latest test date, TypeB: latest test score, TypeC: latest test date, TypeC: latest test score

But am having trouble getting the max bit to work.  I've considered subqueries and also just iif statements, but can't get it working.

Thanks for the help.
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.10.2008 at 08:05AM PDT, ID: 21974139

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:12AM PDT, ID: 21974203

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:16AM PDT, ID: 21974240

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:18AM PDT, ID: 21974250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:19AM PDT, ID: 21974267

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:27AM PDT, ID: 21974351

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: MS Access 2003
Sign Up Now!
Solution Provided By: GRayL
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.10.2008 at 08:29AM PDT, ID: 21974369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:29AM PDT, ID: 21974370

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:30AM PDT, ID: 21974382

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:44AM PDT, ID: 21974539

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 09:18AM PDT, ID: 21974955

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 09:21AM PDT, ID: 21974977

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628