SQL to search duplicates
Posted
by Ram
on Stack Overflow
See other posts from Stack Overflow
or by Ram
Published on 2010-05-17T10:25:48Z
Indexed on
2010/05/17
10:30 UTC
Read the original article
Hit count: 275
sql
|sql-server
I have a table for animals like
- Lion
- Tiger
- Elephant
- Jaguar
- List item
- Cheetah
- Puma
- Rhino
I want to insert new animals in this table and I am t reading the animal names from a CSV file.
Suppose I got following names in the file
Lion,Tiger,Jaguar
as these animals are already in "Animals" table, What should be a single SQL query that will determine if the animals are already exist in the table.
© Stack Overflow or respective owner