What is demat account and trading account

How are demat accounts different from trading accounts?