Roy Cooper beat out Republican Michael Whatley.