thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Foundational

Percentile

The value below which a given percentage of observations fall; the 90th percentile exceeds 90% of the values.

Definition

Percentiles describe position and are used for thresholds, SLAs and ranking. SQL functions include PERCENTILE_CONT (interpolated) and PERCENTILE_DISC (an actual value), and APPROX_PERCENTILE gives fast estimates.

Example

PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY ResponseMs)

Exam tip

PERCENTILE_CONT interpolates between values; PERCENTILE_DISC returns an existing value.

Related terms