Hi Everyone,
I have a particular situation in which i got one table with duplicated data , i am using this query to import
data that is not imported previously. While Number in this case is a primary key.Durring importation this
query returns me error of primary key violation. Can someone tell is this not the correct query to carry
out task i am desiring ?
INSERT INTO TABLE_1 SELECT * FROM TABLE_2 WHERE Number NOT
IN(SELECT Number FROM table_1)
Thanks,
Usman
--------------------------------------------------------------------
NOTA CONFIDENZIALE:
Questo messaggio ed i suoi allegati sono indirizzati esclusivamente
alle persone indicate in testa e possono contenere informazioni
confidenziali. Se avete ricevuto il messaggio per sbaglio, sappiate
che qualunque utilizzo improprio del contenuto è proibito, Vi
preghiamo quindi di inoltrarlo immediatamente al mittente e di
cancellare il messaggio. Per qualsiasi informazione vi inivitiamo a
contattarci scrivendo a [Email Address Removed]
Grazie
CONFIDENTIALITY NOTICE:
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by replying
to [Email Address Removed] you
--------------------------------------------------------------------
MS Sql Server LazyDBA home page