0

Query:

Select batch as Senior_PM_Batch from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');

The query gives the accurate result but is not able to rename the column batch to Senior_PM_Batch.

Result shows the column name as Batch only.

ultrajohn
  • 2,527
  • 4
  • 31
  • 56

1 Answers1

0

Try

Select batch as `Senior_PM_Batch` from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');
Fran Cerezo
  • 940
  • 3
  • 8
  • 19