Hello all -
Thanks for your help in advance!!!
Here is my code:
.... & results:
How do I change my statement to produce the following:
9990002 07/01/2005 44 MARIT
9990002 07/01/2005 17 SINGLE
THANKS A LOT!
Thanks for your help in advance!!!
Here is my code:
Code:
select
employer, period, COUNT( DISTINCT ssn ),
CASE marit when 'M' then 'MARIT' when 'S' then 'SINGLE' else 'SINGLE' END as MARIT_ST from umass_contr
where APP IN ('FLAT' ) and period = date('2005-07-01') and employer='9990002'
GROUP BY employer,period, marit
.... & results:
Code:
EMPLOYER PERIOD 3 MARIT_ST
--------- ---------- ----------- --------
9990002 07/01/2005 44 MARIT
9990002 07/01/2005 1 SINGLE
9990002 07/01/2005 13 SINGLE
9990002 07/01/2005 3 SINGLE
How do I change my statement to produce the following:
9990002 07/01/2005 44 MARIT
9990002 07/01/2005 17 SINGLE
THANKS A LOT!