{"id":174,"date":"2023-05-18T12:10:53","date_gmt":"2023-05-18T12:10:53","guid":{"rendered":"https:\/\/datadandies.nl\/?p=174"},"modified":"2023-05-18T12:10:53","modified_gmt":"2023-05-18T12:10:53","slug":"checken-of-twee-tabellen-identiek-zijn-met-behulp-van-sql","status":"publish","type":"post","link":"https:\/\/datadandies.nl\/index.php\/2023\/05\/18\/checken-of-twee-tabellen-identiek-zijn-met-behulp-van-sql\/","title":{"rendered":"Checken of twee tabellen identiek zijn met behulp van SQL"},"content":{"rendered":"\n<p>Is er een tabel gemigreerd naar een andere locatie en wil je weten of dat de migratie volledig was? Met andere woorden, is tabel 1 identiek aan tabel 2?&nbsp;<\/p>\n\n\n\n<p>Dit kan onder andere in SQL met behulp van EXCEPT of INTERSECT.&nbsp;&nbsp;<\/p>\n\n\n\n<p>De eerste onderstaande query toont alle rijen van table1 die NIET in table2 voorkomen. De tweede onderstaande query toont alle rijen die in beide tabellen voorkomen.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>SELECT * FROM TABLE1&nbsp;<\/p>\n\n\n\n<p>EXCEPT&nbsp;<\/p>\n\n\n\n<p>SELECT * FROM TABLE2&nbsp;<\/p>\n\n\n\n<p>SELECT * FROM TABLE1&nbsp;<\/p>\n\n\n\n<p>INTERSECT&nbsp;<\/p>\n\n\n\n<p>SELECT * FROM TABLE2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is er een tabel gemigreerd naar een andere locatie en wil je weten of dat de migratie volledig was? Met andere woorden, is tabel 1 identiek aan tabel 2?&nbsp; Dit kan onder andere in SQL met behulp van EXCEPT of INTERSECT.&nbsp;&nbsp; De eerste onderstaande query toont alle rijen van table1 die NIET in table2 voorkomen.&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/datadandies.nl\/index.php\/2023\/05\/18\/checken-of-twee-tabellen-identiek-zijn-met-behulp-van-sql\/\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-blog","tag-sql"],"_links":{"self":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":1,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}