What is demat and trading account

What is the relationship between demat and trading accounts in share markets?