PC Review


Reply
Thread Tools Rate Thread

Hunting down duplicates

 
 
=?Utf-8?B?TWF0dCBIb2htZWlzdGVy?=
Guest
Posts: n/a
 
      5th Feb 2007
Hello--

I have a query that creates report card records for a high school. The query
creates one record per student/period combo, with these fields:

SID (Student ID number, 9 digits)
FullName
Grade
Password (for Basmati online grade retrieval system)
CC (course number, 11 digits)
FullGrade (ie, "100 A+")
Instructor (teacher name)
Period (ie, "5")
CourseName (ie, "Term 3: 5-World History")

The problem is that, when students change classes midyear, some teachers
forget to update their gradebooks appropriately, and students wind up with
(ie) two each first and fifth period classes on their report card.

I'd like to do a query that will list only those above records where there's
a match for SID and Period.

Help!

Thanks :-)
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFsZSBGeWU=?=
Guest
Posts: n/a
 
      5th Feb 2007
Matt,

Try:

SELECT *
FROM yourQuery
GROUP BY SID, Period
HAVING Count(SID) > 1

HTH
Dale
--
Email address is not valid.
Please reply to newsgroup only.


"Matt Hohmeister" wrote:

> Hello--
>
> I have a query that creates report card records for a high school. The query
> creates one record per student/period combo, with these fields:
>
> SID (Student ID number, 9 digits)
> FullName
> Grade
> Password (for Basmati online grade retrieval system)
> CC (course number, 11 digits)
> FullGrade (ie, "100 A+")
> Instructor (teacher name)
> Period (ie, "5")
> CourseName (ie, "Term 3: 5-World History")
>
> The problem is that, when students change classes midyear, some teachers
> forget to update their gradebooks appropriately, and students wind up with
> (ie) two each first and fifth period classes on their report card.
>
> I'd like to do a query that will list only those above records where there's
> a match for SID and Period.
>
> Help!
>
> Thanks :-)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help hunting down latest Sound Drivers Venion Windows XP 1 12th Jan 2008 07:11 PM
hunting down a memory leak jason Microsoft C# .NET 4 5th Dec 2005 04:49 PM
Microsoft hunting down exploits P. Thompson Anti-Virus 22 9th Aug 2005 05:00 AM
Hunting down malware infections like aaa_soft D-man Windows XP Internet Explorer 1 5th Oct 2004 06:15 PM
IE Still Hanging After Hunting Down Spyware CHRISTIAN WALKER Windows XP Internet Explorer 2 2nd Mar 2004 06:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 PM.