CREATE TABLE Student_Course_Attendance (student_id INT, course_id INT, date_of_attendance DATETIME)
CREATE TABLE Candidates (candidate_id INT, candidate_details VARCHAR)
CREATE TABLE Candidate_Assessments (candidate_id INT, qualification CHAR, assessment_date DATETIME, asessment_outcome_code CHAR)
CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR, course_description VARCHAR, other_details VARCHAR)
CREATE TABLE Addresses (address_id INT, line_1 VARCHAR, line_2 VARCHAR, city VARCHAR, zip_postcode CHAR, state_province_county VARCHAR, country VARCHAR)
CREATE TABLE Student_Course_Registrations (student_id INT, course_id INT, registration_date DATETIME)
CREATE TABLE People (person_id INT, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, cell_mobile_number VARCHAR, email_address VARCHAR, login_name VARCHAR, password VARCHAR)
CREATE TABLE Students (student_id INT, student_details VARCHAR)
CREATE TABLE People_Addresses (person_address_id INT, person_id INT, address_id INT, date_from DATETIME, date_to DATETIME)

Bar chart of the number of course name from each course name, and I want to order by the Y-axis in desc.
SELECT course_name, COUNT(course_name) FROM Courses GROUP BY course_name ORDER BY COUNT(course_name) DESC
SELECT "course_name", COUNT("course_name") FROM "Courses" GROUP BY "course_name" ORDER BY COUNT("course_name") DESC NULLS LAST