我有以下MYSQL表:
pupils:
id_pupil
name
surname
email
user
pass
level
class
califications:
id_calification
calification
date
time
subject
id_pupil
id_user
id_trimester
type_calification (misses, delayes or attitude)
incidents:
id_incidents
date
time
type_incident
comments
id_pupil
id_user
subject
id_trimester
trimesters:
id_trimester
starting_date
ending_date
timetables:
id_timetable
subject
date
time
level
class
id_user
users:
id_user
name
surname
email
user
pass
type_user
我想建立一个包含下一个信息的摘要表:
我不知道如何使用多个查询构建此表。任何人都可以帮助我吗?