For example, if we want to study the impact of gender on wage. What is the difference if I collect a sample I run a regression and let gender as a dummy variable to compare the impact of gender on wage or I further divided the sample into 2 subgroups which contain female and male separated. Then I separately run the regression model twice.
In other word,
General model:
Wage=b1*gender+b2*educ+error (gender is dummy variable)
Separate model:
Wage=b1*educ+error
Why separate model is not good compared to general model