Hi Tiago,
Thanks for replying,
I'm not sure if you want the entire query, but here it is:
SELECT
cr.ref_num,
cr.group_name,
cr.priority_symbol,
cr.customer_combo_name,
cr.customer_location_name,
cr.customer_organization_name,
cr.assignee_combo_name,
cr.category_symbol,
cr.category,
cr.open_date,
cr.resolve_date,
cr.close_date,
cr.type_symbol,
cr.sla_violation,
cr.target_resolved_count,
cr.request_area_description,
cr.request_area_symbol,
alg.type,
cr.group_location_name,
cr.resolution_code_symbol,
cr.symptom_symbol,
alg.action_desc,
alg.type_symbol
FROM
cr,
alg
WHERE
(
alg.call_req_id = cr.persistent_id
AND
cr.type_symbol <> 'Problem'
AND
cr.group_name NOT IN ( 'PeopleSoft Confidential ','PeopleSoft Confidential-Europe','PeopleSoft Confidential-Mexico','PeopleSoft Confidential-AP','PeopleSoft Confidential-NA','PeopleSoft Confidential-LA' )
AND
cr.close_date BETWEEN {d '2016-09-28 12:00:00 am'} AND {d '2016-09-28 11:59:59 pm'}
)
Here's the variables as described in the description:
And the third variable that causes the duplicate lines:
Hope this helps, let me know if you need anything else.
Joyce