Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete extra rows
Message
 
 
À
26/03/2008 14:56:32
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01305862
Message ID:
01305889
Vues:
8
>Yes the select works.. So if i say the following, it will delete the unmatch records only from 'incros' table right ?
>
>DELETE  incros from incros
>      INNER JOIN
>         inmast
>      ON UPPER(incros.fpartno) + UPPER(incros.fcpartrev) = UPPER(inmast.fpartno) + UPPER(inmast.frev)
>              AND UPPER(incros.fnumber) = UPPER(inmast.custno1)
>              AND UPPER(incros.fcrosspart) = UPPER(inmast.cpartno1)
>   WHERE (incros.fctype = 'C')
>
>
>Thanks Naomi..

It will delete all matching records (e.g. all records from Incros that would satisfy the INNER JOIN condition).
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform