SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Likes on Friends' Posts Yesterday

Unsolved

Meta's feed team measures how much people engage with their friends' content. Treat 2025-08-15 as today, so yesterday is every moment of 2025-08-14. friendships stores each friendship once, as a pair (user_a, user_b), and the friendship goes both ways. A like counts when it was made yesterday and the liker is friends with the post's author. Likes on your own posts never count. Write an SQL query that returns a single column, friend_likes_yesterday.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Meta

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM friendships
Full source dataset
4 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine