Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update sql solution to lc problem: No.1939 #1816

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: optimize
thinkasany committed Oct 16, 2023
commit b7d16387aa1966ae837fe861d57fbd6662005f10
Original file line number Diff line number Diff line change
@@ -88,8 +88,7 @@ Result table
<!-- 这里可写当前语言的特殊实现逻辑 -->

```sql
SELECT DISTINCT
c1.user_id AS user_id
SELECT DISTINCT user_id
FROM
Confirmations AS c1
JOIN Confirmations AS c2 USING (user_id)
Original file line number Diff line number Diff line change
@@ -91,8 +91,7 @@ User 7 requested two messages within 24 hours and 1 second of each other, so we
### **SQL**

```sql
SELECT DISTINCT
c1.user_id AS user_id
SELECT DISTINCT user_id
FROM
Confirmations AS c1
JOIN Confirmations AS c2 USING (user_id)
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SELECT DISTINCT
c1.user_id AS user_id
SELECT DISTINCT user_id
FROM
Confirmations AS c1
JOIN Confirmations AS c2 USING (user_id)