यह आपको प्रत्येक पोस्ट के लिए 5 टिप्पणियाँ देगा।
SELECT p.*,
c.*
FROM Post p
LEFT JOIN
(
SELECT a.*
FROM Comments a
WHERE
(
SELECT COUNT(*)
FROM Comments b
WHERE a.Post_ID = b.Post_ID AND
a.ID <= b.ID
) <= 5
) c ON a.ID = c.Post_ID