Hi All,
I have a table called DUMMY with the following fields and record:
DONDATE | USAGE | PACKETNO
--------------------------------
03/08/2005 | Yes | AB009
08/06/2004 | Yes | AA112
07/05/2005 | | HJ112
What I want my query to do is to:
Retrieve the year (possible value 2004, 2005), a count of the number of the year, the number (count) where usage is YES, and counts where usage is NULL.
Please help me out.
I have a table called DUMMY with the following fields and record:
DONDATE | USAGE | PACKETNO
--------------------------------
03/08/2005 | Yes | AB009
08/06/2004 | Yes | AA112
07/05/2005 | | HJ112
What I want my query to do is to:
Retrieve the year (possible value 2004, 2005), a count of the number of the year, the number (count) where usage is YES, and counts where usage is NULL.
Please help me out.