Sql query is not working if we pass value In clause converted from 'Canada,Portugal' to 'Canada','Portugal' if pass hardcode value In clause 'Canada','Portugal' it works
declare @GeographicalLocation varchar(max)
set @GeographicalLocation ='Canada,Portugal'
set @GeographicalLocation = REPLACE(@GeographicalLocation, ',', ''',''')
set @GeographicalLocation = ''''+@GeographicalLocation+'''';
select ContinentName from [ContinentList] where ContinentId in
(select ContinentId from [CountryList] where [CountryName]
in(@GeographicalLocation)and BaseId is Null)