Continuity mistake: When Charles is talking to Gina in the break room while wearing the mask, he takes it off. When he says she was being sweet, it's back on.
Continuity mistake: The flyers on the top and bottom of the pile Terry is holding keep changing colors.
Casecation - S6-E12
Continuity mistake: Jake mentions that he's never wanted kids, however he has mentioned loads of times in previous seasons/episodes about wanting to become a Dad.
Answer: In reality, the Commissioner is a civilian administrator, appointed by the mayor of New York City. He (as of this writing, the role has always been filled by a man; the show gets that part right) is usually someone who has risen through the ranks of the NYPD, but upon becoming Commissioner, is no longer a sworn member of the force (the highest sworn rank is that of Chief). Since Commissioners are appointed, technically anyone can serve in the position, including Deputy Commissioners (who are appointed, in turn, by the Commissioner himself).
Update: On 1 January 2022, Keechant Sewell became the first ever female commissioner of the NYPD.