select prof,max(tbirthday) from teacher group by prof;//得到了各职称最年轻的人员
select tname from teacher where tbirthday in(select prof,max(tbirthday) from teacher group by prof)
//报错,too many values
实在想不不出来怎么解决了,有没有大佬指点一下
select tname from teacher where tbirthday in(select prof,max(tbirthday) from teacher group by prof)
//报错,too many values
实在想不不出来怎么解决了,有没有大佬指点一下
解决方案 »
- 如何以nologging方式updaet一个带别名的表
- oracle关于字符串的截取。
- mysql与oracle的区别
- sql语句 行变列的问题
- ORACLE执行存储过程ORA-03113错误
- ALTER 表空间的问题(一得答案就给分)
- 分区表的建立!在线等待
- 关于时间比较(只比较月和日)!
- msvc++6开发CS架构 : 服务器端接收请求报文后,如何最大效率地进行oracle数据库中操作,例如insert,select,update等? oci?
- 谢谢:如何在redhat 7.2的xwindows 中启动oracle9i和建库
- 动态UNPIVOT查询该怎么写?各位大神帮我看看。。。。
- oracle迁移到mysql
另可参考下面的语句:select prof,
max(name) keep(DENSE_RANK FIRST order by tbirthday asc) as pname
from teacher
group by prof