I am facing problem in SQL Query, please find my table structure below:-
Table:-
declare @tab table (Id INT IDENTITY, Rid INT, Address1