SQL Practice

Subqueries

Use one query inside another.

  1. 01Doctors above average salary

    Return the names and salaries of doctors earning above the overall average.

    medium
  2. 02Patients with multiple admissions

    Return patients who have more than one admission.

    medium
  3. 03Admissions with above-average bills

    Find admissions with a billing amount above the average bill for all admissions.

    medium
  4. 04Patients without admissions

    Find patients who have never had an admission.

    hard
← All practice topics