The Chasm Trap and the Fan Trap are two common SQL JOIN mistakes that cause unwanted duplicates in the result…