Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete from Inner Join
Message
From
16/01/2013 15:18:36
 
 
To
16/01/2013 15:12:40
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01563007
Message ID:
01563009
Views:
66
This message has been marked as the solution to the initial question of the thread.
>I have a need to delete from a inner join.
>
>This is the original SQL command:
>
>
>SELECT * FROM ListMemberField
> INNER JOIN ListField ON ListMemberField.NoListField=ListField.Numero
> WHERE ListField.NoList=143
>
>
>This gives 22 records.
>
>I basically need to delete those 22 records by adjusting the SQL command for a delete syntax.

should be something like (off the top of my head):
DELETE ListMemberField
FROM ListMemberField INNER JOIN ListField ON ListMemberField.NoListField=ListField.Numero
WHERE ListField.NoList=143
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform