DETAILS table has following columns
Title First Second Third Fourth Fifth
------------------------------------------
A null null null null null
input variable
--------------
@columns = 'Title, Third, Fourth'
I want to generate ouput as
@allcolumns = 'Title, Third, Fourth, First, Second, Fifth'
Variable @allcolumns will contain all columns from DETAILS table but with @columns first and then the remaining columns
So for instance if
@columns = 'Title, Fourth,Fifth'
then output will be
@allcolumns = 'Title, Fourth, Fifth, First, Second, Third'
Thanks