EASYVerified Real Interview• Data Analyst / Business Analyst

Facebook Pages With Zero Likes

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_id INT, page_name VARCHAR)
  • page_likes (user_id INT, page_id INT, liked_date TIMESTAMP)

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
⌘↵ Run Query
Ready to execute. Press Run (⌘+Enter)
Write your query and click “Run” or press ⌘+Enter to inspect output.