Complex sentence: David earned his Ph.D. at Carnegie Mellon University in electrical engineering and worked there as a professor for many years.
Split into simpler sentences: David earned his Ph.D. at Carnegie Mellon University in electrical engineering. He worked there as a professor for many years.