How to open a demat account and start trading

How to open a Demat account and start trading simultaneously?,