Hi everyone!

First of all, thank you to everyone contributing to this forum, you have helped me a lot in doing my first steps in Stata and in managing the data for my Master's Thesis.

Nevertheless, I know have encountered a small problem that I do not know how to properly encode. I am doing research on M&As and use Industry Relatedness as a Moderator. I measure Industry Relatedness with a Primary SIC Code representing the Industry of the acquirer and target company respectively. If the codes in both observations match they're in the same Industry. I want to create a dummy variable with a 0 representing a non-match and a 1 representing a match of SIC Codes. How can I achieve this?
acq_sic_code target_sic_code
6021 6021
6022 6022
6021 6712
8092 3841

Thank you for your answers,
Michael