I want to insert only Distinct Records from Table \"A\" to Table \"B\". Assume both the tables has same structure.
INSERT INTO B SELECT DISTINCT * FROM A
You might not want the id column of the table to be part of the distinct check, so use this solution if that's the case: https://stackoverflow.com/a/5171345/453673