20200 在 2023/4/7 15:04:24 说到:  
  求助查询李海龙老师所教的班中年龄最小的学生姓名和出生日期(当前年2010)

这条发言的回复:

发言人:2020014478 发言时间:2023/4/8 8:50:47 select sname,csrq from student where csrq=(select max(csrq)from student,sc,course,teacher where sc.cno=course.cno and course.tno=teacher.tno and student.sno=sc.sno and tname='李海龙')
发言人:2020014474 发言时间:2023/4/8 8:49:04 select sname,csrq from student where csrq=(select max(csrq)from student,sc,course,teacher where sc.cno=course.cno and course.tno=teacher.tno and student.sno=sc.sno and tname='李海龙')
发言人:2019014781 发言时间:2023/4/7 15:44:24 可以用min(2010-year(csrq)) 求最小年龄

版权所有:计算机应用研究所
Copyright (C)2016  All rights reserved.
TEL:-******** Email:yyh@zwu.edu.cn