SQL: Get the count of related records less than 1 minute read Micro tutorial: SQL select the count of related records and sort by it.