Table Saw Vs Miter Saw

Table saw vs miter saw, what exactly is the difference? When should you use one or the other?