This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

6 lines
339 B
SQL

CREATE VIEW Tweets_and_tags AS
SELECT (select Username from User where User.UserID=Tweet.UserID) as User,
Tweet.Content as Tweet, group_concat(Hashtag.Content,"") as Hashtag from Tweet
INNER JOIN HashtagsInContent ON HashtagsInContent.TweetID=Tweet.TweetID
INNER JOIN Hashtag ON HashtagsInContent.HashtagID=Hashtag.HashtagID
GROUP BY User