Avatar of dkilby
dkilby
Flag for Canada asked on

MS SQL Query + Merge Data

I have a table that i am using to load data in my database, i want to move the data to another table, and merge the rows that have the same Call_ID into one row.

so if call_id is the same, then it would only create one row in the new table, is this even possible with a query ?
Microsoft SQL ServerMicrosoft SQL Server 2008SQL

Avatar of undefined
Last Comment
Scott Pletcher

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
PortletPaul

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Scott Pletcher

Be aware that MERGE has sometimes has performance issues.  There are also some claims of faulty logic.

For now, I'd stick the "standard" UPDATE and then INSERT.
Your help has saved me hundreds of hours of internet surfing.
fblack61