The longest
Grey's Anatomy leads with 23 seasons and 461 episodes, followed by ER with 15 seasons and 331 episodes.
The big comedies
The Big Bang Theory (12 seasons), Modern Family (11), Friends (10), The Goldbergs (10) and Roseanne (10).
Still adding seasons
When Calls the Heart and Impractical Jokers have 13 seasons each and both continue.