If you had told use this requirement from the beginning, I would not have wasted time on you, answering again.Simple replace INNER JOIN with LEFT JOIN.SELECT Registration.Name, PerNation.CountryName AS [Permannent Country], PreNation.CountryName AS [Present Country]FROM RegistrationLEFT JOIN Nation AS PerNation ON PerNation.CountryCode = Registration.PerCountryLEFT JOIN Nation AS PreNation ON PreNation.CountryCode = Registration.PreCountryORDER BY .......Here is sample data and outputdeclare @Registration table (Name varchar(4), PerCountry tinyint, PreCountry tinyint)insert @registrationselect 'Joe', 101, 102 union allselect 'Ani', NULL, 103 union allselect 'Peso', 106, 107 union allselect 'Lala', 104, NULLdeclare @Nation table (CountryCode tinyint, CountryName varchar(7))insert @nationselect 101, 'US' union allselect 102, 'England' union allselect 103, 'India' union allselect 104, 'UAE' union allselect 105, 'Austria' union allselect 106, 'SE' union allselect 107, 'Sweden'SELECT reg.Name, per.CountryName AS [Permannent Country], pre.CountryName AS [Present Country]FROM @registration AS regLEFT JOIN @Nation AS per ON per.CountryCode = reg.PerCountryLEFT JOIN @Nation AS pre ON pre.CountryCode = reg.PreCountry
Peter LarssonHelsingborg, Sweden