0 like 0 dislike
1 view
in Bilgi Teknolojileri by Araştırmacı (10.4k points)
question & answer clean database

1 Answer

0 like 0 dislike
by Araştırmacı (10.4k points)
DELETE FROM kb_sharedevents WHERE NOT EXISTS(
     SELECT * FROM kb_users WHERE kb_users.userid = kb_sharedevents.lastuserid);
...