Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

This challenge deals with String aggregation. On occasion it is necessary to aggregate data from a number of rows into a single row, giving a list of data associated with a specific value.

TSQL Beginners Challenge 21 - Create SQL Server version of the ORACLE WM_CONCAT function

Solution to TSQL Beginners Challenge 21

Apr 13 2011 9:05AM by siddiquikashan   

Solution to TSQL Beginners Challenge 21

DECLARE @t TABLE(Deptno INT, Empname VARCHAR(20)) 
INSERT INTO @t  
SELECT 10, 'Niladri' UNION ALL 
SELECT 20, 'Jeeva' UNION ALL 
SELECT 30, 'Deepak' UNION ALL 
SELECT 30, 'Priyanka' UNION ALL 
SELECT 20, 'Arina'  
 
--SELECT * FROM @t 
 
Select DeptNo,Right(EmpName,Len(EmpName)-1) 'EmpName' from  
( 
Select  
DeptNo, 
Rtrim(Ltrim((Select '~'+Coalesce(B.Empname,'') From @T B Where A.DeptNo = B.DeptNo FOR XML PATH( '' ) ))) 'EmpName' 
From @T A 
Group By DeptNo 
)A 
Order BY DeptNo, EmpName 

Tags:


siddiquikashan
329 · 0% · 128
0
Liked



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]