OK, I have a main panel 200amp in the house. Then in my shop out back I have a 200amp sub panel. I want to install a 100 amp sub panel in the upstairs of the shop for a one bedroom apartment. I have a 100 amp sub panel. I have 25ft of #2 wire and I have 3 20 amp breakers for lights and outlets and a double pole 30 amp breaker for the electric stove. one of the 20 amp breakers will be dedicated to a ac/heat unit. Does all of this sound correct?
First, are you sure that 30A is a sufficiently large breaker for your range circuit? Most electric cooking appliances (freestanding electric ranges, cooktop/oven combinations) require a 40A or a 50A circuit.
The 20A breakers do sound correct for the lighting and receptacle circuits, although you will need more of them, as every dwelling unit must have at least two dedicated 20A small appliance branch circuits and a 20A bathroom receptacle branch circuit; if laundry facilities are present, yet another dedicated 20A branch circuit must be provided for the laundry room outlets. You will want to use a double-pole breaker for HVAC, though: all but the very smallest HVAC appliances require a 240V circuit, and this includes packaged terminal units, even though they only draw a relatively small amount of current (<20A) compared to a conventional air conditioner.
The overall capacity of the subpanel you have on hand (100A) is more than adequate for an apartment-type dwelling unit; however, you will want to check the number of breaker slots available to you in it -- full-width slots are at a premium these days due to AFCI requirements, which makes depending on tandem breakers to fit all your circuits into your panel quite unwise.
Your #2 wire will be adequate for the feeder conductors provided it is copper and of a 75°C rated or better insulation type (such as ordinary THHN/THWN). If you are using aluminum wire, I would upsize to 1AWG -- 2AWG aluminum is marginal for 100A service, requring 90°C rated insulation in order to be at all usable in such an application.