something like this:SELECT emp.employee_id AS [Employee ID] , enr.coverage_code AS [Coverage Code 1] , enr.coverage_date AS [Coverage Date 1] , MAX(CASE WHEN enr.product_type = 'Accident.Accident' THEN enr.coverage_code END) AS [Coverage Code 2] , MAX(CASE WHEN enr.product_type = 'Accident.Accident' THEN enr.coverage_date END) AS [Coverage Date 2]FROM employees empjoin enrollment enr on emp.employer_id = enr.employer_idWHERE emp.company_id = 'A&P' and enr.product_type in ('Info.General', 'Accident.Accident') and enr.enroll_status = 'closed'GROUP BY emp.employee_id , enr.coverage_code , enr.coverage_date