Refer to the original article - http://bjbsair.com/2020-03-25/tech-info/6230/
First, the table names and field
-1 student table student (s_id, s_name, s_birth, s_sex) -. Student number, student's name, date of birth, student sex
-2 curriculum course (c_id, c_name, t_id) -. Course number, course name, teacher numbers
-3 teacher table teacher (t_id, t_name) -. No teacher, teacher's name
-4 transcript score (s_id, c_id, s_score) - student number, course number, score
Two, Mysql title
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
Read the small partners, look forward to your valuable vote cast, the late Big Star @Python based on the difficulty factor, to which 50 SQL question reordering, sorting summary.
Degree of difficulty (radio) 0 person 0% A. ★ 0 person 0% B. ★★ 0 person 0% C. ★★★ 0 person 0% D. ★★★★ 0 person 0% E. ★★★★ ★ vote
Three, Mysql analysis
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
1, with a grade point average avg (), using the group by Student ID
2, sorted in descending order by grade point average, course code ascending
Four, Mysql program
1, Mysql program
2, Mysql results
Refer to the original article - http://bjbsair.com/2020-03-25/tech-info/6230/
First, the table names and field
-1 student table student (s_id, s_name, s_birth, s_sex) -. Student number, student's name, date of birth, student sex
-2 curriculum course (c_id, c_name, t_id) -. Course number, course name, teacher numbers
-3 teacher table teacher (t_id, t_name) -. No teacher, teacher's name
-4 transcript score (s_id, c_id, s_score) - student number, course number, score
Two, Mysql title
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
Read the small partners, look forward to your valuable vote cast, the late Big Star @Python based on the difficulty factor, to which 50 SQL question reordering, sorting summary.
Degree of difficulty (radio) 0 person 0% A. ★ 0 person 0% B. ★★ 0 person 0% C. ★★★ 0 person 0% D. ★★★★ 0 person 0% E. ★★★★ ★ vote
Three, Mysql analysis
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
1, with a grade point average avg (), using the group by Student ID
2, sorted in descending order by grade point average, course code ascending
Four, Mysql program
1, Mysql program
2, Mysql results
Refer to the original article - http://bjbsair.com/2020-03-25/tech-info/6230/
First, the table names and field
-1 student table student (s_id, s_name, s_birth, s_sex) -. Student number, student's name, date of birth, student sex
-2 curriculum course (c_id, c_name, t_id) -. Course number, course name, teacher numbers
-3 teacher table teacher (t_id, t_name) -. No teacher, teacher's name
-4 transcript score (s_id, c_id, s_score) - student number, course number, score
Two, Mysql title
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
Read the small partners, look forward to your valuable vote cast, the late Big Star @Python based on the difficulty factor, to which 50 SQL question reordering, sorting summary.
Degree of difficulty (radio) 0 person 0% A. ★ 0 person 0% B. ★★ 0 person 0% C. ★★★ 0 person 0% D. ★★★★ 0 person 0% E. ★★★★ ★ vote
Three, Mysql analysis
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
1, with a grade point average avg (), using the group by Student ID
2, sorted in descending order by grade point average, course code ascending
Four, Mysql program
1, Mysql program
2, Mysql results
Refer to the original article - http://bjbsair.com/2020-03-25/tech-info/6230/
First, the table names and field
-1 student table student (s_id, s_name, s_birth, s_sex) -. Student number, student's name, date of birth, student sex
-2 curriculum course (c_id, c_name, t_id) -. Course number, course name, teacher numbers
-3 teacher table teacher (t_id, t_name) -. No teacher, teacher's name
-4 transcript score (s_id, c_id, s_score) - student number, course number, score
Two, Mysql title
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
Read the small partners, look forward to your valuable vote cast, the late Big Star @Python based on the difficulty factor, to which 50 SQL question reordering, sorting summary.
Degree of difficulty (radio) 0 person 0% A. ★ 0 person 0% B. ★★ 0 person 0% C. ★★★ 0 person 0% D. ★★★★ 0 person 0% E. ★★★★ ★ vote
Three, Mysql analysis
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
1, with a grade point average avg (), using the group by Student ID
2, sorted in descending order by grade point average, course code ascending
Four, Mysql program
1, Mysql program
2, Mysql results
Refer to the original article - http://bjbsair.com/2020-03-25/tech-info/6230/
First, the table names and field
-1 student table student (s_id, s_name, s_birth, s_sex) -. Student number, student's name, date of birth, student sex
-2 curriculum course (c_id, c_name, t_id) -. Course number, course name, teacher numbers
-3 teacher table teacher (t_id, t_name) -. No teacher, teacher's name
-4 transcript score (s_id, c_id, s_score) - student number, course number, score
Two, Mysql title
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
Read the small partners, look forward to your valuable vote cast, the late Big Star @Python based on the difficulty factor, to which 50 SQL question reordering, sorting summary.
Degree of difficulty (radio) 0 person 0% A. ★ 0 person 0% B. ★★ 0 person 0% C. ★★★ 0 person 0% D. ★★★★ 0 person 0% E. ★★★★ ★ vote
Three, Mysql analysis
Queries grade point average in each course, results in descending order according to the average score, the average score is the same, according to the course numbers in ascending order
1, with a grade point average avg (), using the group by Student ID
2, sorted in descending order by grade point average, course code ascending
Four, Mysql program
1, Mysql program
2, Mysql results