CREATE TABLE Enrolled_in (StuID NUMBER, CID VARCHAR2, Grade VARCHAR2)
CREATE TABLE Student (StuID NUMBER, LName VARCHAR2, Fname VARCHAR2, Age NUMBER, Sex VARCHAR2, Major NUMBER, Advisor NUMBER, city_code VARCHAR2)
CREATE TABLE Course (CID VARCHAR2, CName VARCHAR2, Credits NUMBER, Instructor NUMBER, Days VARCHAR2, Hours VARCHAR2, DNO NUMBER)
CREATE TABLE Member_of (FacID NUMBER, DNO NUMBER, Appt_Type VARCHAR2)
CREATE TABLE Department (DNO NUMBER, Division VARCHAR2, DName VARCHAR2, Room VARCHAR2, Building VARCHAR2, DPhone NUMBER)
CREATE TABLE Gradeconversion (lettergrade VARCHAR2, gradepoint FLOAT)
CREATE TABLE Minor_in (StuID NUMBER, DNO NUMBER)
CREATE TABLE Faculty (FacID NUMBER, Lname VARCHAR2, Fname VARCHAR2, Rank VARCHAR2, Sex VARCHAR2, Phone NUMBER, Room VARCHAR2, Building VARCHAR2)

Visualize a bar chart about the distribution of Days and the average of Credits , and group by attribute Days.
SELECT Days, AVG(Credits) FROM Course GROUP BY Days ORDER BY Credits
SELECT "Days", AVG("Credits") FROM "Course" GROUP BY "Days" ORDER BY "Credits"