Share via

allocate values to different section t-sql

srk 41 Reputation points
2022-03-20T00:42:16.287+00:00

Hi there,
I would like to allocate values to different communication types. The main intension is I need to fill up the phone numbers for 4 columns. If object Id got 3 phone numbers under one communication type and 2 under another communication type , need to fill up the columns first with relevant communication type and left over numbers assigned to other columns

please see my input and required output 184809-image.png

Please help me on this

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL

A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.