2020 1학기 DB 프로젝트 진행

#20200622. 쿼리문 실행 + 결과 작성

Aria (Applied) 2020. 6. 22. 13:55

이제 모든 데이터들을 다 넣었습니다.

쿼리문 몇개를 실행하면서 결과를 보도록 합시다.

 

1) 유저 정보 조회

SELECT user_id, `rank`, solved_count, codeforce_id, solved_ac_id
FROM boj_solved_ac.boj_user
ORDER BY solved_count DESC
LIMIT 500;

 

2) 문제 티어 및 정보 조회

SELECT p.id, p.title, p.correct_count, sp.tier, e.tier_name

FROM problem as p

NATURAL JOIN solved_ac_problem as sp

INNER JOIN exp_table as e on sp.tier = e.tier;

 

여러 몇 개의 쿼리문들을 더 수행하였습니다.