If you just want to know what table a records are not in table b
select * from tablea where stuid not in (select stuid from tableb)
...do the opposite to find tableb records not in tablea.
If you want to find records where the stuid's match between tables but there is at least one field-level difference, this is a bit more involved. You need to assume that each table has the same record structure. Let me know if you need to do this.
Table A (Students) has demographic information about students in our district.
Table B (Attend) has attendance(absence) information about many of the students.
The field which relates both tables is stuid
My SQL is something like this for my report
SELECT * from Students, Attend;
WHERE Students.StuiID=Attend.StuID;
Into Cursor TempReport
About 1700 of the 1800 students have attendance data or records in the attend.dbf. 100 students do not appear in the report because their records are unmatched or do not have any records in the attend.dbf. I want to use SQL to find the unmatched records.
I can then create the same report and indicate that these students have no attendance data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.