
January 23rd, 2013, 10:29 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Pa
Posts: 19
Time spent in forums: 46 m 17 sec
Reputation Power: 0
|
|
|
SQL Query giving duplicate records
I'm trying to pull from our database all the students that are absent on a certain day. I have it where I get all the students but it's duplicating records and I don't know why.
Code:
select emf.L_NAME,emf.F_NAME, atn.ID_NUMBER, atn.SAF_CODE, atn.SAF_DATE1
from EMF
INNER Join ATN
ON EMF.ID_NUMBER=ATN.ID_NUMBER
Where atn.SAF_CODE='ne' and atn.SAF_DATE1='1-22-2013'
|