There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
http://msdn.microsoft.com/en-us/library/ms190273.aspx
reason:
Both the source table or partition, and the target table or partition, must reside in the same filegroup.
this restriction is logical, btw, as this statement will do nothing but change the points, it will NOT move actually any data.