The trading & Demat accounts are closely related but serve different purposes.
The trading account is used to conduct buy and sell transactions of securities. Every trading account is linked to a unique ID where all transactions are recorded.
The Demat account is used to store the securities you own in an electronic format.
To know more, check out our app on Stock Market Education: https://bit.ly/34us7OL