CREATE TABLE [dbo].[hotel_info]( [hotel_code] [varchar](20) NOT NULL, [images] [varchar](100) NULL )
INSERT INTO hotel_info (hotel_code, images) SELECT A.hotel_code, A.images FROM importtable A LEFT JOIN hotel_info B ON A.hotel_code = B.hotel_code AND A.images = B.images WHERE B.hotel_code IS NULL;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)