Apr 6, 2006 #1 Michael42 Programmer Oct 8, 2001 1,454 US Hello All, Would any of you have a script or technique you could share that compares two tables to ensure the data contained within them is identicle? I would like to go a little further than a simple SELECT count(*). Thanks, Michael42
Hello All, Would any of you have a script or technique you could share that compares two tables to ensure the data contained within them is identicle? I would like to go a little further than a simple SELECT count(*). Thanks, Michael42
Apr 6, 2006 1 #2 Thargy Technical User Nov 15, 2005 1,348 GB Michael, Code: select * from table1 minus select * from table 2; Then, Code: select * from table2 minus select * from table1; will detect absent and surplus records. Regards Tharg Grinding away at things Oracular Upvote 0 Downvote
Michael, Code: select * from table1 minus select * from table 2; Then, Code: select * from table2 minus select * from table1; will detect absent and surplus records. Regards Tharg Grinding away at things Oracular
Apr 10, 2006 Thread starter #3 Michael42 Programmer Oct 8, 2001 1,454 US thargtheslayer, Thanks for posting. It is simple and very effective! Thanks, Michael42 Upvote 0 Downvote