Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete extra rows
Message
From
26/03/2008 15:03:14
 
 
To
26/03/2008 14:56:32
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01305862
Message ID:
01305889
Views:
7
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform