进行多次查询以构建包含一些数据摘要的表

时间:2014-01-09 11:42:28

标签: php mysql tabular

我有以下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

我想建立一个包含下一个信息的摘要表:

enter image description here

我不知道如何使用多个查询构建此表。任何人都可以帮助我吗?

0 个答案:

没有答案