For example having a parent record with ID being 1, you display all child records having the ID 1 and you the next records link to displaying a parent ID being 2 with it's child records. I'm developing an application with Asp classic with sql server. i want to know if there's a query that can give me that results Another example is just like facebook when you click on a picture you get the various comments on it and when you click on the next arrow, get it turns to a new pictures also with its comments.
SELECT *
FROM dbo.users_pics INNER JOIN profile ON users_pics.email = profile.email Left Join photo_comment On users_pics.u_pic_id = photo_comment.pic_id
WHERE users_pics.wardrobe = MMColParam
meaning after a pictues shows, you can use a next picture link to show the upcoming picture with its comments