sqldba2013
asked on
Alternative function for CONC in Sql server
We are using the MS access CONC function in order to merge rows for services quotes, so that if multiple values are present between rows for a single quote we merge them and separate the values by commas.
We need to run below query on Sql server database but the CONC built-in function is not available in SQL server. Please suggest which Sql function we can use in place of CONC in Sql server.
Query:
SELECT [SVC].[ID1],
CONC("Market","ID1",[ID1], "SVC") AS Market,
CONC("Location","ID1",[ID1 ],"SVC") AS Location,
CONC("Requestor","ID1",[ID 1],"SVC") AS Requestor,
CONC("HW Quote Generated By","ID1",[ID1],"SVC") AS [HW Quote Generated By],
CONC("Cabinet","ID1",[ID1] ,"SVC") AS Cabinet
From Temp_Name
We need to run below query on Sql server database but the CONC built-in function is not available in SQL server. Please suggest which Sql function we can use in place of CONC in Sql server.
Query:
SELECT [SVC].[ID1],
CONC("Market","ID1",[ID1],
CONC("Location","ID1",[ID1
CONC("Requestor","ID1",[ID
CONC("HW Quote Generated By","ID1",[ID1],"SVC") AS [HW Quote Generated By],
CONC("Cabinet","ID1",[ID1]
From Temp_Name
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To be clear: There is no CONC function in Access. This is something you've picked up from somewhere else.
ASKER
--
FROM Table;