10 likes | 129 Views
Deptage. Student. Deptage. CREATE TABLE Deptage (Sdept CHAR(15) Avgage SMALLINT). INSERT INTO Deptage(Sdept, Avgage). SELECT Sdept, AVG(Sage) FROM Student GROUP BY Sdept.
E N D
Deptage Student Deptage CREATE TABLE Deptage (Sdept CHAR(15) Avgage SMALLINT) INSERT INTO Deptage(Sdept, Avgage) SELECT Sdept, AVG(Sage) FROM Student GROUP BY Sdept