[Solved] Sql Select From multiple table [closed]
You should write as: — STEP2: Insert records: INSERT INTO @Travels SELECT CountryId,VisitorId,0 FROM — 0 = false for IsVisited ( — STEP1: first create a combination for all visitor Id and country Id — and get all the combinations which are not there in existing Travels table SELECT C.CountryId,V.VisitorId FROM @Country C CROSS JOIN … Read more