Skip to content

Commit bd48f07

Browse files
committed
Solvesql modify file name
1 parent c93f024 commit bd48f07

File tree

7 files changed

+28
-11
lines changed

7 files changed

+28
-11
lines changed

Solvesql/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
| Idx | Question | Category | Solution | Note |
88
|:---:|-------------------------------------------------------| -------------------------------------------------------------------------- |-------------------------------------------------------------------------------------------------------------| ---- |
9-
| 1 | [두 테이블 결합하기](https://solvesql.com/problems/join/) | JOIN/UNION | [Solution](https://github.com/SubAkBa/Algorithm_Solution/blob/master/Solvesql/Solutions/%EB%91%90%ED%85%8C%EC%9D%B4%EB%B8%94%EA%B2%B0%ED%95%A9%ED%95%98%EA%B8%B0.sql) | |
10-
| 2 | [레스토랑 웨이터의 팁 분석](https://solvesql.com/problems/tip-analysis/) | Aggregate | [Solution](https://github.com/SubAkBa/Algorithm_Solution/blob/master/Solvesql/Solutions/%EB%A0%88%EC%8A%A4%ED%86%A0%EB%9E%91%EC%9B%A8%EC%9D%B4%ED%84%B0%EC%9D%98%ED%8C%81%EB%B6%84%EC%84%9D.sql) | |
11-
| 3 | [일별 블로그 방문자 수 집계](https://solvesql.com/problems/blog-counter/) | Aggregate | [Solution](https://github.com/SubAkBa/Algorithm_Solution/blob/master/Solvesql/Solutions/%EC%9D%BC%EB%B3%84%EB%B8%94%EB%A1%9C%EA%B7%B8%EB%B0%A9%EB%AC%B8%EC%9E%90%EC%88%98%EC%A7%91%EA%B3%84.sql) | |
12-
| 4 | [우리 플랫폼에 정착한 판매자 2](https://solvesql.com/problems/settled-sellers-2) | Aggregate | [Solution](https://github.com/SubAkBa/Algorithm_Solution/blob/master/Solvesql/Solutions/%EC%9A%B0%EB%A6%AC%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%97%90%EC%A0%95%EC%B0%A9%ED%95%9C%ED%8C%90%EB%A7%A4%EC%9E%902.sql) | |
139

1410

1511
</details>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-- @ss.idx: 1
2+
-- @ss.level: 2
3+
-- @ss.title: 두 테이블 결합하기
4+
-- @ss.slug: join
5+
-- @ss.category: JOIN/UNION
6+
-- @ss.note:
7+
18
SELECT DISTINCT athlete_id
29
FROM records
310
WHERE EXISTS (
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- @ss.idx: 2
2+
-- @ss.level: 2
3+
-- @ss.title: 레스토랑 웨이터의 팁 분석
4+
-- @ss.slug: tip-analysis
5+
-- @ss.category: Aggregate
6+
-- @ss.note:
7+
8+
SELECT day
9+
, time
10+
, ROUND(AVG(tip), 2) as avg_tip
11+
, ROUND(AVG(size), 2) as avg_size
12+
FROM tips
13+
GROUP BY day, time
14+
ORDER BY day, time;

Solvesql/Solutions/레스토랑웨이터의팁분석.sql

Lines changed: 0 additions & 7 deletions
This file was deleted.

Solvesql/Solutions/일별블로그방문자수집계.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-- @ss.idx: 3
2+
-- @ss.level: 2
3+
-- @ss.title: 레스토랑 웨이터의 팁 분석
4+
-- @ss.slug: tip-analysis
5+
-- @ss.category: Aggregate
6+
-- @ss.note:
7+
18
SELECT event_date_kst AS dt
29
, COUNT(DISTINCT user_pseudo_id) AS users
310
FROM ga

0 commit comments

Comments
 (0)