An apprenticeship typically lasts three years. If you perform exceptionally well, the duration may be shortened by 6 to 12 months.
Dual study courses have a fixed duration of 6 semesters, i.e. 3 years.