SQL Interview Questions – Invalid Tweets

Problem Description –

Write an SQL query 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.

Return the result table in any order.

The query result format is in the following example.

Problem Link – Invalid Tweets

Difficulty Level – Easy

Solution –

SELECT
    tweet_id
FROM Tweets
WHERE LENGTH(content) > 15

Rating: 1 out of 5.

Leave a Reply