SQLSQL
#7

Implement API Pagination with LIMIT and OFFSET in SQL

Easy
Interview Question #7

Given an `articles` table, write a SQL query to retrieve page 3 of articles, where each page contains 10 articles. Sort articles by `published_at` descending.

Input Table: articles
2 rows preview
article_idtitlepublished_at
1Data Trends 20262026-03-01
2SQL Guide2026-02-28
Expected Output Structure1 rows
article_idtitlepublished_at
21Article 212026-02-10
Interview Context

Asked frequently in data analyst and business analyst technical rounds. Focus on clean filtering, optimal indexing usage, and unambiguous column selection.

SQLPostgreSQL 15
Ready to execute

Click "Run Query" or press Ctrl + Enter to test your query.

Output will be verified against the test dataset.

Chat with us