Is there any better way to write the below query for optimize the performance.
INSERT INTO [dbo].[MBQ_All] ([Uniq], [StoreClass], [Store], [code], [ExtendedDescription], [ITEM_CLASS], [SUPPLIER], [Brands], [Min], [Max],[ADS]
,[Store+whMBQ])
SELECT [Uniq], [StoreClass], [Store], [code], [ExtendedDescription], [ITEM_CLASS], [SUPPLIER], [Brands], [Min], [Max],[ADS]
,[Store+whMBQ]
FROM dbo.MBQ_All_1
WHERE MBQ_All_1.Uniq NOT IN (
SELECT UNIQ
FROM dbo.MBQ_All
);
The table MBQ_All has more than 4,00,000 Rows and MBQ_All_1 has 2,00,000.
I'm using SQL Server 2008.