I have table
Table column name description name
Tab1 Col1 Col1 -Desc1
Tab1 Col1 Col1-Desc2
Tab1 col2 Col2 Desc
Tab2 col3 Col3 Desc
Tab2 col4 COL4 Desc
I want to build aggregation result meaning that each instance of table will be only once in the new table and it will do aggregation to the column name and to the description.
Table column name description name
Tab1 Col1,co1,col2 Col1 –Desc1, Col1-Desc2, Col2 Desc
Tab2 col3,col4 Col3 Desc,Col4 Desc
Is it possible to do it in SQL ?