Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6769037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:08:43+00:00 2026-05-26T15:08:43+00:00

Comment:tbl CommentId PK CommentEntry CommentDate Category CommentCommentId BlogEntryId FK Insert into Comment(CommentId, CommentEntry, CommentDate,

  • 0
Comment:tbl

CommentId PK  
CommentEntry  
CommentDate  
Category  
CommentCommentId  
BlogEntryId FK


Insert into Comment(CommentId, CommentEntry, CommentDate, Category, CommentCommentId, BlogEntryId)
Values("1","I love shoes","10-3-2011","1","" ,"13"),
("2","I love shoes too","10-4-2011","1","1" ,"13"),
("3","There nice shoes in the mall","2","","13");

QUESTION:Produce, for the first comment made on a given Blog entry, any further comments made on that original comment only. The user should be prompted for the Blog entry’s unique identifier.

ANS SUPPOSE TO BE :

("1","I love shoes","10-3-2011","1","" ,"13"),
("2","I love shoes too","10-4-2011","1","1" ,"13")

Please help with sql

I want to be to do a self join to accept [BlogEntryId] and product 1st Comment ‘CommentCommentId=””‘ and all the Comments on that 1st comment .

help with sql please:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:08:44+00:00Added an answer on May 26, 2026 at 3:08 pm

    Just adding a bit to your original query:

    SELECT * 
    FROM Comment 
    WHERE BlogEntryId = [?Blog Entry] 
    AND (
        CommentId = (SELECT CommentId FROM Comment WHERE CommentDate = (SELECT min(CommentDate) from Comment))
        OR
        CommentCommentId = (SELECT CommentId FROM Comment WHERE CommentDate = (SELECT min(CommentDate) from Comment))
        )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A comment to one of my posts interested me: Me too . I also
In a comment on this question , Phil mentions that Hardcoding URL strings into
Comment on Duplicate Reference: Why would this be marked duplicate when it was asked
## COMMENT OUT below just for reference cursor.execute ( CREATE TABLE yellowpages ( business_id
Comment rows are counted in the NR. Is there some flag to ignore comments?
The comment to this answer got me wondering. I've always thought that C was
This comment confuses me: kill -l generally lists all signals. I thought that a
######################################## # some comment # other comment ######################################## block1 { value=data some_value=some other kind
As comment to one of the questions here a commenter wrote (emphasis mine): ...
$.Comment = function() { this.alertme = Alert!; } $.Comment.prototype.send = function() { var self

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.