The table contains Department,Grade,status. <br>How to obtaine the below output<br><br> Dept/Grade G1 G2 G3 <br> D1 2 0 2 <br> D2 5 0 5 <br> D3 7 1 6 <br>The matrix represents the count of status with respect to <br>department and grade.<br>Can this be obtained using groupby statement?<br>Please avoid cursors.<br>Can a query return output in 2-D format.<br>