What is demat account and what is trading account

How does a demat account differ from a trading account?,