Fetching first 5 values against every value in another column in another table |
Hi guys, hope this is the right section for this question.
I have 2 tables, topics (topic_id - pk) and comments (comment_id - pk, topic_id - fk). For all the topics, I want to get first 5 comment IDs in one go. Can you give me insights into how to go about it please?
Constantly learning.
|
Messages In This Thread |
Fetching first 5 values against every value in another column in another table - by anirudh88a - 07-26-2017, 05:49 AM
RE: Fetching first 5 values against every value in another column in another table - by Martin7483 - 07-26-2017, 08:42 AM
RE: Fetching first 5 values against every value in another column in another table - by ciadvantage - 07-26-2017, 04:56 PM
RE: Fetching first 5 values against every value in another column in another table - by skunkbad - 07-26-2017, 05:30 PM
RE: Fetching first 5 values against every value in another column in another table - by anirudh88a - 07-26-2017, 09:48 PM
|