the following query gives the number of users per state.thus there are 2 columns that of state and users.i want to add a 3rd column that gives me the count of new users in the past 7 days ,which can be run every week.
select state,count(users)
from a
where username not in (select lgnnm
from b)
and approvaldate > To_date('01-Oct-1999', 'DD-MM-YYYY')
group by state;
how do i go about it?
Thanks in advance
select state,count(users)
from a
where username not in (select lgnnm
from b)
and approvaldate > To_date('01-Oct-1999', 'DD-MM-YYYY')
group by state;
how do i go about it?
Thanks in advance