查询:
Select batch as Senior_PM_Batch from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');
该查询提供了准确的结果,但无法将列batch
重命名为Senior_PM_Batch
。
结果仅将列名称显示为Batch
。
答案 0 :(得分:0)
尝试
Select batch as `Senior_PM_Batch` from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');