MySql Python's Day homosexual practice 130-- list of students of the same name, and the number of statistics

Refer to the original article -http: //bjbsair.com/2020-03-25/tech-info/6224/


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

Query the name of the same sex with the list of students, the number of the same name and statistics

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 program

MySql Python's Day homosexual practice 30-- list of students of the same name, and the number of statistics

Output:

MySql Python's Day homosexual practice 30-- list of students of the same name, and the number of statistics


Original articles published 0 · won praise 0 · Views 292

Guess you like

Origin blog.csdn.net/zxjoke/article/details/105108412