Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Declare @Temp Table(RowId Int, Value VarChar(50))
Insert Into @Temp Values(1,'William')
Insert Into @Temp Values(2,'John')
Insert Into @Temp Values(3,'CA')
Insert Into @Temp Values(4,'89788')
Insert Into @Temp Values(5,'Los Angeles.')
SET NOCOUNT ON
Declare @Output VarChar(1000)
Set @Output = ''
Select @Output = @Output + Value + ' '
From @Temp
Where Value Is Not NULL
Order By RowId
Select @Output
Declare @Temp Table(RowId Int, Value VarChar(50))
Insert Into @Temp Values(1,'William')
Insert Into @Temp Values(2,'John')
Insert Into @Temp Values(3,'CA')
Insert Into @Temp Values(4,'89788')
Insert Into @Temp Values(5,'Los Angeles.')
SET NOCOUNT ON
Select Min(Case When RowId = 2 Then Value End) As First,
Min(Case When RowId = 1 Then Value End) As Last,
Min(Case When RowId = 5 Then Value End) As City,
Min(Case When RowId = 3 Then Value End) As State,
Min(Case When RowId = 4 Then Value End) As Zip
From @Temp