I want to write a query which returns three different counts based on three different conditions. The following data set and result set may explain my scenario.
Table Data PersonId work status Year 1 W 2008 2 W 2008 3 T 2008 4 S 2008 5 W 2008 6 T 2007 7 S 2009 Required Result set