hi,
In Trans table, it contain ItemID, TeacherID which reference to Item table and Teacher table
and i need to get the record in Trans table, and it has 1 row at the moment,
when i join these table, it returns more 6 rows(which is 6 copies of the record in Trans table).
select * from Teacher, Item, Trans, Subject where Teacher.TeacherID = 'admin' and Trans.TeacherID = Teacher.TeacherID and Item.ItemID = Trans.ItemID and Subject.SubjectID = 2 and Subject.SubjectID = Item.SubjectID order by checkinDate
what should I do to get only 1row(it only has 1 row in Trans table)
is it I have something wrong in my query?
thx