Nested SQL call – Postgresql
EDIT: As requested, our table schema is, posts: postid (primary key), post_text comments: commentid (primary key) , postid (foreign key referencing posts.postid), comment_text replies replyid (primary key) commentid (foreign key referencing comments.commentid) reply_text I have the tables posts, comments, and…