What is the procedure to transfer stocks from one demat account to another?

What is the procedure to transfer stocks from one demat account to another?