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:)
Just adding a bit to your original query: