Skip to content
Advertisement

Using one query’s result into another

I have this query which shows the below result, I want to use this MarksObtained and take out min, max and avg of each course and show it with the second query (have provided below).

This is the second query

So it will basically show min, max and avg of each course achieved by the students.

What I want:

Sample data:

StdMarks table:

StdCourseTeacher Table:

Exam Table:

Course Table:

Semester Table:

Teacher Table:

Advertisement

Answer

I think you want to use group by in order to use aggregate functions as follows:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement