Editor’s note: Story revised to correct original which missed the Raleigh ranking.

Raleigh ranked fourth among U.S. metro areas with the highest percentage of its workforce in STEM jobs on personal finance site WalletHub’s Best Cities for STEM jobs report, but landed at 22nd on the list.

Charlotte ranked 37, while Winston Salem was 73 and Greenboro 78th on the list.

Durham and Cary were neither part of the Raleigh metro nor included.

In a different report just released by the Milken Institute on Best Performing Cities: Where Americas jobs are created and sustained, Raleigh was named second-best and Charlotte 13th. The Milken report cited Raleigh’s low business costs and research and development industries as major reasons for its rank. Raleigh moved up four spots from last year on the Milken index. Utah metro Provo-Orem claimed the top spot.

STEM workers are in high demand nationally and earn an average of $87,570, almost double the average of $45,700 for all non-STEM jobs.

WalletHub gave cities a total score, a professional opportunities rank, a STEM friendliness rank and a quality of life rank, comparing the cities across 17 metrics. Its data set included per-capita job openings for STEM grads to annual median wage growth for STEM jobs and projected demand for STEM workers by 2020.

The best metro areas for STEM professionals according to the ranking:

  1. Seattle, WA.
  2. Boston, MA.
  3. Pittsburgh, PA.
  4. Austin, TX.
  5. Minneapolis, MN.
  6. Madison, WI.
  7. Salt Lake City, UT.
  8. Springfield, MA.
  9. Chicago, IL.
  10. Atlanta, GA.

Highlights from the report include:

  • Harrisburg, Pennsylvania has the most per-capita job openings for STEM graduates, 108.56, which is 40.4 times higher than in Deltona, Florida, the metro area with the fewest at 2.69.
  • San Jose, California, has the highest share of all workers in STEM occupations, 21.9 percent, which is 12.9 times higher than in McAllen, Texas, the metro area with the lowest at 1.7 percent.
  • Washington has the highest projected number of STEM jobs per capita needed by 2020, 14.86 percent, which is 13.8 times higher than in Las Vegas, the metro area with the lowest at 1.08 percent.
  • Houston has the highest annual median wage for STEM workers (adjusted by cost of living), $95,187, which is 2.3 times higher than in Honolulu, the metro area with the lowest at $41,249.
  • Dayton, Ohio, has the highest housing-affordability index for STEM professionals, 11.40 percent, which is 2.1 times higher than in Honolulu, the metro area with the lowest at 24.24 percent.

A previous version of this story missstated the Raleigh ranking.