K
Kappa
I've a table Client_Table like this
Company_Id - User_Id - Account_Delete_Date
ABC - u001 - 01/03/2005
ABC - u002 -
XYZ - u020 - 02/02/2007
XYZ - u050 - 04/03/2008
XYZ - u060 -
Date can by anywhere between Jan 2005 to Aug 2008.
Q: Can you please tell me what query I need to write to get total
number of active users in each month (of 2005 to 2008) for a
particular company. I have Account Delete Date, from where I can
determine if user is active or not.
So I have to count how many User_Ids (for a particular company) are
not deleted in a particular month.
Result would be something like this:
Company_Id : Jan 2005 : Feb 2005 : March 2005 ......................
Aug 2008
ABC : 2 : 1 :
3 ...................... 3
XYZ : 4 : 5 :
2 ...................... 8
Thanks a lot in advance.
Company_Id - User_Id - Account_Delete_Date
ABC - u001 - 01/03/2005
ABC - u002 -
XYZ - u020 - 02/02/2007
XYZ - u050 - 04/03/2008
XYZ - u060 -
Date can by anywhere between Jan 2005 to Aug 2008.
Q: Can you please tell me what query I need to write to get total
number of active users in each month (of 2005 to 2008) for a
particular company. I have Account Delete Date, from where I can
determine if user is active or not.
So I have to count how many User_Ids (for a particular company) are
not deleted in a particular month.
Result would be something like this:
Company_Id : Jan 2005 : Feb 2005 : March 2005 ......................
Aug 2008
ABC : 2 : 1 :
3 ...................... 3
XYZ : 4 : 5 :
2 ...................... 8
Thanks a lot in advance.