I can give you the US Army versions.
A machine gun is a crew served weapon, there are at least two people assigned to operate it. Machine guns are usually belt fed so sustained rates of fire can be utilized. A sub machine gun is an individual weapon, usually clip fed and limited to sustained fire for how many rounds are in the clip. Sub machine guns come in two versions, the Fully automatic rifle and the smaller version firing pistol ammunition.
The M2 .50 caliber machine gun is the king of the roost, shooting half inch diameter bullets, at a rate of fire around 450-500 rounds a minute. This machine gun has been around since WW2.
The M60 Machine gun. A 7.62 MM which usually has a two man crew, but can be operated by one person. This is the primary machine gun used by the light infantry. This gun has been around since the 1960's.
M16 5.52 MM Sub Machine gun. It has been around since the 60's and has been updated and modified several times to increase its efficiency and reliability. It has a 30 round clip and can sustain automatic fire through the entire clip.
The MP5 is a fully automatic sub machine gun that fires 9 MM pistol cartridges from a 30 round magazine.