1、 selectUSE studentGOSELECT stud_id, name, birthday, gender, mark FROM stud_info WHERE name LIKE N'郑_'USE studentGOSELECT teacher_id, name, tech_title, salaryFROM teacher_infoWHERE tech_title IN (N'助教', N'讲师', N'副专家')USE studentGOSELECT AVG (grade) FROM stud_grade WHERE course_id=''USE studentGOSELECT stud_id 学号, name 姓名, year(getdate())-year(birthday) 年龄, birthday 出生日期FROM stud_infoWHERE gender = N'男'ORDER BY birthday ASCSE studentGOSELECT substring(stud_id,5,2) 专业编号, avg(mark) 平均入学成绩FROM stud_infoWHERE substring(stud_id,3,2) ='01'GROUP BY substring(stud_id,5,2)USE studentGOSELECT tech_title, avg(age)FROM teacher_infoGROUP BY tech_titleHAVING tech_title = N'讲师'USE studentGOSELECT tech_title, salaryFROM teache