T
trex44
I used the dupicate wizrd in Access 07 to find dupes in my table; I have 5
columns: student id, courseid, semester, grade, and course year.
I identified the duplicates using this:
SELECT [studentid] & [courseid] as studentcourseid
FROM TRANSCRIPT
GROUP BY TRANSCRIPT.[STUDENTID], TRANSCRIPT.[COURSEID]
HAVING (((Count(TRANSCRIPT.[STUDENTID]))>1) AND
((Count(TRANSCRIPT.[COURSEID]))>1));
Now I need to also pull in the semester and grade associated with the
duplicate rows. When I try creating a main query and using the above as a
subquery i get all of my rows back, not just the duplicates.
select grade, semester
from transcript
where exists
(SELECT [studentid] & [courseid] as studentcourseid
FROM TRANSCRIPT
GROUP BY TRANSCRIPT.[STUDENTID], TRANSCRIPT.[COURSEID]
HAVING (((Count(TRANSCRIPT.[STUDENTID]))>1) AND
((Count(TRANSCRIPT.[COURSEID]))>1)));
If i try this query pasted below, i get asked to enter a parameter value???
when i do, i get all the rows,not the dupicates
select grade, semester, [studentid] & [courseid] as studentcourseid
from transcript
where studentcourseid in
(SELECT [studentid] & [courseid] as studentcourseid
FROM TRANSCRIPT
GROUP BY TRANSCRIPT.[STUDENTID], TRANSCRIPT.[COURSEID]
HAVING (((Count(TRANSCRIPT.[STUDENTID]))>1) AND
((Count(TRANSCRIPT.[COURSEID]))>1)));
thanks for any help
columns: student id, courseid, semester, grade, and course year.
I identified the duplicates using this:
SELECT [studentid] & [courseid] as studentcourseid
FROM TRANSCRIPT
GROUP BY TRANSCRIPT.[STUDENTID], TRANSCRIPT.[COURSEID]
HAVING (((Count(TRANSCRIPT.[STUDENTID]))>1) AND
((Count(TRANSCRIPT.[COURSEID]))>1));
Now I need to also pull in the semester and grade associated with the
duplicate rows. When I try creating a main query and using the above as a
subquery i get all of my rows back, not just the duplicates.
select grade, semester
from transcript
where exists
(SELECT [studentid] & [courseid] as studentcourseid
FROM TRANSCRIPT
GROUP BY TRANSCRIPT.[STUDENTID], TRANSCRIPT.[COURSEID]
HAVING (((Count(TRANSCRIPT.[STUDENTID]))>1) AND
((Count(TRANSCRIPT.[COURSEID]))>1)));
If i try this query pasted below, i get asked to enter a parameter value???
when i do, i get all the rows,not the dupicates
select grade, semester, [studentid] & [courseid] as studentcourseid
from transcript
where studentcourseid in
(SELECT [studentid] & [courseid] as studentcourseid
FROM TRANSCRIPT
GROUP BY TRANSCRIPT.[STUDENTID], TRANSCRIPT.[COURSEID]
HAVING (((Count(TRANSCRIPT.[STUDENTID]))>1) AND
((Count(TRANSCRIPT.[COURSEID]))>1)));
thanks for any help