What is the difference between the NYPD and the NYC Sherriffs Office?

Both are law enforcement agencies for NYC obviously, and i know that the Sheriff has jurisdiction throughout the entire city, but otherwise what is the difference between the two?
4 answers 4