Hi,
Is there a way in SQL to display the same column with different conditions in one row? For example, if I have EMP table as follows:
emp_id | status | tier
********************
111111 | Active | 1
222222 | Active | 1
333333 | Cancel| 1
444444 | Cancel| 2
Then I need a query, which result is:
tier | number of active emp | number of cancelled emp
*********************************************
1 | 2 | 1
2 | 0 | 1
Thanks!!!