sql - Deleting using inner join -


I want to delete some data from a table. I want to delete the data that is not included in internal join

My query is up to now:

  Delete * How do you say that which is included in the deleted internal Ho? * From dbo Clappy Sea Inner Inner Debu Coke P. c.cakeid = p.cakeid where cact & gt; 1  

Thanks in advance for all and any support provided :)!

You can use LEFT OUTER JOIN :

  Remove from DBA c.Cloudpie c LEFT OUTER add dbo.cake p ON c.cakeid = p.cakeid where P is cakeid faucet and c cakeid & gt; 1: easy and less error prone (on empty columns) by using <1>  

or not existing :

  .Cloudpie c Where not (select 1 to dbo.cake p WHERE p.cakeid = c.cakeid) and c.cakeid & gt; 1  

Reading worth:


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -