Using SQL Server I have the following tables/ data
CUS_VISIT
Cus_ID Cus_Vis_ID
1 01
1 02
2 01
You need to do a subquery within your select in order to concatenate values from multiple rows into a single row.
See this answer for a solution: https://stackoverflow.com/a/545672/745511
i resolved this issue by creating a view that just associates the prt_cd with the event and then another view based on this one that combines (concatenates) all of the prt_cd s for one event... not sure why but was never able to find a way to do is all in one shot with one query.