UP Police Constable needs 12th pass; Sub-Inspector needs a graduation degree.
Both have a written exam, PET/PST and a medical examination, but the SI syllabus and standards are higher.
Sub-Inspector is a higher rank with supervisory duties and a higher pay level.
Physical standards also differ between the two posts.
The exact eligibility, syllabus and standards for each are in the official UP Police notifications.