Invalid Tweets
Task: 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.
Table: Tweets
| Column Name | Type |
|---|---|
| tweet_id | INT |
| content | varchar(255) |
Input: Tweets table:
| tweet_id | content |
|---|---|
| 1 | Vote for Biden |
| 2 | Let us make America great again! |
Output:
| tweet_id |
|---|
| 2 |
View Reference Solution & Explanation ▼
This query filters the table using basic `SELECT` and `WHERE` clauses to match the exact conditions specified in the problem.
SELECT tweet_id FROM Tweets WHERE LENGTH(content) > 15;