Using SQL Server I have the following tables/ data
CUS_VISIT
Cus_ID Cus_Vis_ID 1 01 1 02 2 01 >
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