B
Balint Toth
Hi all,
I have got two tables (table1, table2), each of them has primary key ID
filed (bigint), and the second one has a foregin key, what points to the
first table ID field (so the table2 has a table1_id column).
I would like to delete the rows from table1 which aren't refeered from
table2. Unfortunatelly I cannot figure out the SQL statement. Please help
me!
And how can I implement it in C#?
Thanks in advance!
Best regards,
Bálint Tóth
I have got two tables (table1, table2), each of them has primary key ID
filed (bigint), and the second one has a foregin key, what points to the
first table ID field (so the table2 has a table1_id column).
I would like to delete the rows from table1 which aren't refeered from
table2. Unfortunatelly I cannot figure out the SQL statement. Please help
me!
And how can I implement it in C#?
Thanks in advance!
Best regards,
Bálint Tóth