I have 2 columns; access_method-id, app_name
Each user uses different apps from time to time and I need to write a query to get a list of all the apps that the user have used in one column.
like this
acess_method_id | App_Name
12345 | [bima,gaming,tube]
34579 | [candy,bubbles,gaming,tube]
Data in the table on which I am running the query looks like this
acess_method_id | App_Name
12345 | bima
12345 | gaming
12345 | tube
34579 | candy
34579 | bubbles
34579 | gaming
34579 | tube
I am using this query on Teradata from Dbeaver
Select COUNT(DISTINCT App_Name),ACCESS_METHOD_ID
from DP_VEW.mytable as a
GROUP BY ACCESS_METHOD_ID
this query gives me a count of the apps, I need to get the list. Using Teradata SQL is there a way to write a query to get the desired results?