DBMS - (13) null value
DBMS - (13) null value NULL value? undefined or unknown Example College(cName, state, enrollment) Student(sID, sName, GPA, size of HS) Apply(sID, cName, major, decision) GPA, decision은 null이 허용된다. insert into Student values(432, 'Kevin', null, 1500); insert into Student values(321, 'Lori', null, 2500); Q1) select sID, sName, GPA from Student where GPA > 3.5 or GPA 3.5 or GPA
DBMS - (12) aggregation function
DBMS - (12) aggregation function SELECT A1,A2,...,An FROM R1,R2,...,Rm WHERE condition GROUP BY columns HAVING condition aggregation function : max, min, sum, avg, count Q1) select avg(GPA) from Student; 전체 학생들의 평균 GPA Q2) select min(GPA) from Student, Apply where Student.sID = Apply.sID and major = 'cs'; CS에 지원한 학생들의 최소 GPA Q3) select avg(GPA) from Student, Apply where Student.sID = Apply.sID a..