I'm currently taking the online class on databases, If you could help me solve this sql problem I would greatly appreciate it. Sorry I'm a complete noob.
I need to list out all the drivers’ name, age, position and their average rating for a particular month. Listing out name,age and position is ok but i have problem with the average rating(as there are few entries for a 'booking',need to calculate average from those entries) and also group them into each driver from a particular month
below are my codes
table booking BookID NUMBER(4) PRIMARY KEY, PersonID NUMBER(4), driverID NUMBER(4), PickLoc VARCHAR2(13), DropLoc VARCHAR2(13), TDate DATE, TTime NUMBER(4), RideFare CHAR(6), TollOther CHAR(6), cancelDate DATE, TripRating NUMBER(1), PayMethod CHAR(15), table driver driverID NUMBER(4) PRIMARY KEY, Dname VARCHAR2(20), DNRIC CHAR(14), Dgender CHAR(1), DDOB DATE, Dmobile CHAR(11), DcarNo CHAR(6), Dstart DATE, Dgrade CHAR(6), DLicence CHAR(4), );