enter image description hereI want to Create a View it has some columns and all the rows have the same result except one column, how to merge or combine All the rows in a one row but one column with the different value I wanted to show them in one column and split the values with comma. if there is a way show me by Query.
CREATE VIEW [ret_vwSalaried]
AS
SELECT
salaried.FirstName,
salaried.LastName,
salaried.IdNumber,
salaried.PersonnelNumber,
operation.OperationalUnit
FROM
ret_Salaried salaried INNER JOIN
ret_OperationalUnitFeaturs operation ON salaried`enter code here`.Guid = operation.SalariedGuid
WHERE Deleted = 0
the result includes 3 rows, I wanted to merge them in one row because they are the same but Column [OperationalUnit] has Different result (each person could have different operational unit), and I want to merge them too, in the row and split them with comma.