EASYVerified Real Interview• Data Analyst / Business Analyst
Facebook Pages With Zero Likes
Verified Source:Public Candidate Interview Report
You are asked by Meta's Social Graph team to identify Facebook Pages that currently have zero likes.
Write a SQL query to return the IDs of all Facebook pages that do not have any likes recorded in the page_likes table.
Sort the output in ascending order by page_id.
Tables:
pages(page_idINT,page_nameVARCHAR)page_likes(user_idINT,page_idINT,liked_dateTIMESTAMP)
Execution Sandbox:
Your query executes inside an isolated in-memory PostgreSQL engine (PGlite WebAssembly). You have full access to standard PostgreSQL aggregations, window functions, and CTEs.
Standard SQL (ANSI)|Ln 1, Col 1(7 lines, 110 chars)
Tab Indent⌘↵ Run Query
Ready to execute. Press Run (⌘+Enter)
Write your query and click “Run” or press ⌘+Enter to inspect output.