【正文】
select 學(xué)號,姓名,性別 from studentsdb . where 學(xué)號 not in (select 學(xué)號 from studentsdb . ) 2. 在student_info表和grade表之間實(shí)現(xiàn)交叉連接。goinsert (學(xué)號,課程編號,分?jǐn)?shù) )values(39。SELECT ,姓名,分?jǐn)?shù)FROM student_info , grade ,curriculumwhere 性別=39。000139。000539。union allselect 學(xué)號,姓名 from studentsdb .dbo .student_info where 姓名 like 39。select 學(xué)號,姓名,出生日期 from student_info order by 出生日期,學(xué)號 desc (5) 查詢所有姓“張”的學(xué)生的學(xué)號和姓名。select 學(xué)號,分?jǐn)?shù) from grade where 分?jǐn)?shù)=39。(1) 在student_info表中,查詢每個學(xué)生的學(xué)號、姓名、出生日期信息。2. 掌握使用SELECT語句進(jìn)行條件查詢的方法。 ) (4) SELECT Replicate(39。select 姓名, 家庭住址 from student_info where 性別=39。select AVG (分?jǐn)?shù)) as 平均分 from grade where 課程編號=39。select ,AVG ()as 平均成績 from ainner joingrade bon = group by , 6. 使用UNION運(yùn)算符將student_info表中姓“劉”的學(xué)生的學(xué)號、姓名與姓“張”的學(xué)生的學(xué)號、姓名返回在一個表中,如圖41所示。select 學(xué)號,姓名,性別 from studentsdb .dbo .student_info where