Skip to content

Commit 83e2e77

Browse files
committed
task: #1683
1 parent 4680a07 commit 83e2e77

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Have a good contributing!
5757
- [1484. Group Sold Products By The Date](./leetcode/easy/1484.%20Group%20Sold%20Products%20By%20The%20Date.sql)
5858
- [1587. Bank Account Summary II](./leetcode/easy/1587.%20Bank%20Account%20Summary%20II.sql)
5959
- [1633. Percentage of Users Attended a Contest](./leetcode/easy/1633.%20Percentage%20of%20Users%20Attended%20a%20Contest.sql)
60+
- [1683. Invalid Tweets](./leetcode/easy/1683.%20Invalid%20Tweets.sql)
6061
- [1693. Daily Leads and Partners](./leetcode/easy/1693.%20Daily%20Leads%20and%20Partners.sql)
6162
- [1729. Find Followers Count](./leetcode/easy/1729.%20Find%20Followers%20Count.sql)
6263
- [1741. Find Total Time Spent by Each Employee](./leetcode/easy/1741.%20Find%20Total%20Time%20Spent%20by%20Each%20Employee.sql)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Question 1683. Invalid Tweets
3+
Link: https://leetcode.com/problems/invalid-tweets/description/?envType=study-plan-v2&envId=top-sql-50
4+
5+
Table: Tweets
6+
7+
+----------------+---------+
8+
| Column Name | Type |
9+
+----------------+---------+
10+
| tweet_id | int |
11+
| content | varchar |
12+
+----------------+---------+
13+
tweet_id is the primary key (column with unique values) for this table.
14+
content consists of alphanumeric characters, '!', or ' ' and no other special characters.
15+
This table contains all the tweets in a social media app.
16+
17+
18+
Write a solution to find the IDs of the invalid tweets. The tweet is invalid if the number of characters used in the content of the tweet is strictly greater than 15.
19+
20+
Return the result table in any order.
21+
*/
22+
23+
SELECT tweet_id
24+
FROM Tweets
25+
WHERE LENGTH(content) > 15

0 commit comments

Comments
 (0)