Link to home
Start Free TrialLog in
Avatar of thehollis
thehollis

asked on

Combining group results in Reporting Services Part 2

I am creating a report that displays multiple demographics of employees who do or do not utilize direct deposit.   One of the groups (UNION_CODE) returns 6 items: (NULL), Union1, Union2, Union3-Service, Union3-Skilled, Union3-Tech and then reports how many in each group has direct deposit, does not have direct deposit, or partially uses direct deposit.

I've been asked to combine the results to show only 3 groups:

1. Union1
2. Union3 (Service, Skilled, & Tech)
3. "Everyone else" ((NULL) and Union2)

Any ideas on how to do this either in the SQL query dataset or in the report layout (or anywhere else)?
SELECT        EMPLOYEE, LAST_NAME, FIRST_NAME, DEPARTMENT, 
                         PROCESS_LEVEL, TERM_DATE, SCHEDULE, EMP_STATUS, 
                         UNION_CODE, "COALESCE"(AUTO_DEPOSIT, 'N') 
                         AS AUTO_DEPOSIT
FROM            LAWSON.EMPLOYEE
WHERE        (TERM_DATE = '01-JAN-1700')

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jgv
jgv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thehollis
thehollis

ASKER

Thank you very much!!!  I am still learning SQL and have not encountered CASE yet...now I will seek it out.