Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorts / Grouping and duplicates!

Status
Not open for further replies.

wonderlander

Instructor
Oct 19, 2001
8
GB
Application uses any of the following back ends : SQL, Access and Oracle

Data is stored as such
Code:
Date   Employee    Job Number
1/1/04 Ted Smith   123
1/1/04 Paul Taylor 123
2/1/04 Paul Taylor 123
2/1/04 Bob Little  87
2/1/04 Jamie Bent  223
3/1/04 Jamie Bent  223
1/1/04 David Grant 56
1/1/04 Bob Little  87
2/1/04 Ted Smith   123
I want the report to print out in Job Start Date and then by Job Number. The output from the data above should give:

1/1/04 Job 56
1/1/04 Job 87
1/1/04 Job 123
2/1/04 Job 223


If I Group by date then I get the job number on every day it appears...hope that makes sense!
 
with the data:

1/1/2004 job1
2/1/2004 job1
3/1/2004 job1
1/1/2004 job2
1/1/2004 job3

1. Group by Job
2. Top N 1 sort on date (unchecked include others)

and got

01/01/2004
job1 01/01/2004
job2 01/01/2004
job3 01/01/2004

Is this what you needed the output to look like?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top