kyohoonsim / kusf-data-2023-1

2023-1 KUSF data 수업 강의자료 레포지토리
17 stars 1 forks source link

Quiz6. 그룹화 #7

Open kyohoonsim opened 1 year ago

kyohoonsim commented 1 year ago

6-1. [SQL 쿼리] [실행화면 캡쳐]

6-2. [SQL 쿼리] [실행화면 캡쳐]

indianaPoly commented 1 year ago

6-1. select count(age), age from student group by age;

스크린샷 2023-05-31 오후 8 32 49

6-1-1. select count(age), age from student group by age having age > 23;

스크린샷 2023-05-31 오후 8 26 34

6-2. select school, count(school) from student where age >= 23 group by school;

스크린샷 2023-05-31 오후 8 27 25
hungrywoo commented 1 year ago

6-1 .SELECT age, COUNT(age) FROM student GROUP BY age HAVING age > 23; image

6-2. SELECT school, COUNT(school) FROM student WHERE age >= 23 GROUP BY school; image

dhEhdod commented 1 year ago

6-1. SELECT age, COUNT(age) FROM student GROUP BY age HAVING age>23 ; image

6-2. SELECT school, COUNT(school) FROM student WHERE age>=23 GROUP BY school; image

xinnazim commented 1 year ago

QUIZ6.

6-1.

SELECT age,COUNT(age) FROM student GROUP BY age; DBeaver 23 0 5 - _52 79 134 175 2_ Script 2023-05-31 오후 8_27_22

6-1-1.

SELECT age,COUNT(age) FROM student GROUP BY age HAVING age>23;

DBeaver 23 0 5 - _52 79 134 175 2_ Script 2023-05-31 오후 8_28_07

6-2.

SELECT school,COUNT(school) FROM student WHERE age>=23 GROUP BY school; DBeaver 23 0 5 - _52 79 134 175 2_ Script 2023-05-31 오후 8_29_48

JJungEunnn commented 1 year ago

6-1 image

6-1-1 image

6-2 image

echoe1009 commented 1 year ago

6-1. SELECT age, COUNT(age) FROM student GROUP BY age; image

6-2. SELECT age, COUNT(age) FROM student GROUP BY age HAVING age > 23; image

6-3. SELECT school, COUNT(school) FROM student WHERE age >= 23 GROUP by school; image

aosdbfc commented 1 year ago

SELECT count(age), age FROM student GROUP BY age HAVING age > 23;

image

SELECT school, count(school) FROM student WHERE age >= 23 GROUP BY school; image

KUSFTWOO commented 1 year ago

SELECT age, CO 퀴즈 6-1 캡쳐 UNT(age) FROM student GROUP BY age; SELECT age, COUNT(age) FROM student WHERE age >23 GROUP BY age; 퀴즈 6-1-1 캡쳐 SELECT school, COUNT(school) FROM student WHERE age >23 GROUP BY school; 퀴즈 6-2 캡쳐

WooJHo commented 1 year ago

6-1 SELECT age, COUNT(age) from student group by age; image

6-1-1 정답1) SELECT age, count(age) from student where age > 23 group by age; 정답2) select age, count(age) from student group by age having age > 23; image

6-2 select school, COUNT(school) from student where age > 23 group by school; image

yibeeeen commented 1 year ago

6-1 SELECT age, COUNT(age) from student group by age HAVING age >23;

스크린샷 2023-05-31 오후 8 32 25

6-2 SELECT school, COUNT(school) from student where age >= 23 group by school;

스크린샷 2023-05-31 오후 8 35 30
SHINZIMIN commented 1 year ago

6-1 SELECT age, count(*) FROM student GROUP BY age;

image

6-1-1 SELECT age, count(age) FROM student GROUP BY age HAVING age > 23;

image

6-2 SELECT school, count(school) FROM student WHERE age >= 23 GROUP BY school;

image

jjjjjjye commented 1 year ago

6-1 SELECT age, COUNT(age) FROM student GROUP BY age;

6-1

6-1-1 SELECT age, COUNT(age) FROM student GROUP BY age HAVING age > 23;

6-1-1

6-2 SELECT school, COUNT(school) FROM student WHERE age > 23 GROUP BY school;

6-2
expediore commented 1 year ago

6-1. select age as 나이, count(*) as 학생수 from student group by age; image

6-1-1. select age as 나이, count(*) as 학생수 from student group by age having age > 23; image

6-2. select school as 학교, count(*) as 학생수 from student where age >= 23 group by school; image

monimanimo commented 1 year ago

6-1 select count(age), age from student group by age; image 6-1-1 select count(age), age from student group by age having age >23; image 6-2 select school, count(school) from student where age >=23 group by school; image

BAEKDONGSEOK commented 1 year ago

6-1 image 6-1-1 image 6-2 image

Y0nghwan commented 1 year ago

6-1 SELECT age, COUNT(name) FROM student GROUP BY age HAVING age > 23; image

6-2 SELECT school, COUNT(name) FROM student WHERE age >= 22 GROUP BY school; image

YelynYoo commented 1 year ago

6-1. select age, count(age) from student group by age;

image

6-1-1. select age, count(age) from student group by age having age > 23;

image

6-2. select school, count(email) from student where age >= 23 group by school;

image

last0331 commented 1 year ago

6-1. SELECT age,COUNT(age) FROM student GROUP BY age; quiz 6-1

6-1-1. SELECT age , COUNT(age) FROM student GROUP BY age HAVING age > 23; quiz 6-1-1

6-2. SELECT school , COUNT(email) FROM student WHERE age >= 23 GROUP BY School; quiz 6-2

YelynYoo commented 1 year ago

7. SELECT * from student where age > (select avg(age) from student);

image