Hello - I am new to the world of econometrics and am working on a small research paper. I am trying to identify the difference in hourly wages for second generation Hispanic and Asian Americans.

A big thing that I've identified through my research is that Asian Americans and Hispanic Americans tend to enter different occupations, so for my analysis I think it's important to add occupation as a control. I am unsure of how to do this without listing out a dummy variable for each of the 25 occupation groups that I've put together. I came across the idea of adding i.occupation in my regression... is this the way to go?