08/10/2023 11:38 PM
Hello Team,
We have to create the analytics report which will fetch all the ARS requests created within 7 days. In that report we need Application name for which the account/access is requested. In ars_requests table we have ENDPOINTASCSV column which we are trying to join with endpointname in endpoints table.
This join is working fine when we are requesting for single endpoint/application request but in case when multiple application is requested the record is not included in the report because ENDPOINTASCSV contains application names in comma separated format.
eg: application1, application2
I had tried using FIND_IN_SET() function but for application2 access also it is printing application1 endpoint name which is incorrect.
Can anyone help me on this?
Solved! Go to Solution.
08/10/2023 11:40 PM
08/10/2023 11:44 PM
Hi @AnkitaBamania ,
Can you share your whole query.
08/11/2023 12:09 AM
select count(e.endpointname) as COUNT,e.endpointname as Application from ars_requests ar,request_access ra,request_access_attrs ras,endpoints e where ar.requestkey=ra.requestkey and ra.request_accesskey=ras.request_access_key and ar.requesttype=3 and ra.accesstype=3 and ras.attribute_name='ENDPOINT' and e.endpointkey=ras.attribute_value group by e.endpointname
ORDER BY count(e.endpointname) DESC
08/11/2023 05:06 AM
It worked for me !! Thanks @rushikeshvartak