what do you mean by magnetic quantum number how it is different from spin quantum number ?
The magnetic quantum number is the third on the list between spin and azimuthal quantum number. It splits the sub-shells (such as s,p,d,f) into individual orbitals and places the electron in one of them. It defines the orientation in space of a given orbital of particular energy (n) and shape (I).