本题目要求编写SQL语句,
检索出 stu表中‘计算机工程’或‘软件工程’专业的学生的记录,结果集按学号升序排序。
select sno as 学号,sname as 姓名,sex as 性别,mname as 专业
from stu
join major on stu.mno=major.mno
where stu.mno in('01','02')
order by sno asc;
/*llll*/
本题目要求编写SQL语句,
检索出 stu表中‘计算机工程’或‘软件工程’专业的学生的记录,结果集按学号升序排序。
select sno as 学号,sname as 姓名,sex as 性别,mname as 专业
from stu
join major on stu.mno=major.mno
where stu.mno in('01','02')
order by sno asc;
/*llll*/