Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select to compare two tables
Message
 
 
À
29/01/2022 19:47:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01683376
Message ID:
01683380
Vues:
26
>>Hi,
>>
>>Say, I have two tables in the SQL Server DB. The structure of the tables is the same. And most of the records are the same (my assumption). I want to create a SQL Select that would show me just those rows that exist in one table but do not exist in another table.
>>How would you create such a SQL Select?
>>
>>TIA
>
>Is there a single key column value that's common to both tables as an identifier?

To add to my previous message. The key column (e.g. ID_NUMBER) could be the same but some other columns could be different. This is why I wanted the comparison to be on ALL columns.

UPDATE. And since the structure is somewhat simple, there are probably only about 6-7 columns in the tables.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform