请在我的数据库中建立一个如下所示的结果表:
Id Studentno Name Subject Term Class session Total
1 2019001 Example1 English First Term JSS 1 A 2019/2020 60
2 2019001 Example1 Mathes First Term JSS 1 A 2019/2020 76
3 2019002 Example2 English Fist Term JSS 1 A 2019/2020 65
4 2019002 Example2 Mathe First Tem JSS 1 A 2019/2020 67
我该如何在php中提取结果,以便它像这样给我提供广泛的工作表:
SN Student ID Name English Maths
1 2019001 Example 1 60 76
2 2019002 Example 2 65 67