Separate licenses are required for each field (building, electrical, plumbing, and mechanical). There are examinations required for each field. Electrical and plumbing also require state licenses before applying for examination with the city.
Under no circumstances is a Fireplace Contractor allowed to any electrical, plumbing, mechanical contractor or residential building work unless they also hold the appropriate, additionally required, licenses.