Results 1 to 3 of 3

Thread: Nested queries

  1. #1
    Join Date
    Sep 2006
    Posts
    57

    Unanswered: Nested queries

    Hello, I am developing a question - answer site. What I am trying to do is, for every answer i would like to show several comments per answer. Similar to this url:

    My__________ is not in good condition. | Answerbag.com

    as you can see for each answer their could be multiple comments in the answer and there are many answer to the question.

    How would I make a query to show the answers then nest the comments in the answers. This has got my mind spinning.

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by Luke101
    How would I make a query to show the answers then nest the comments in the answers.
    please don't make us guess

    show your table layouts

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    In case info of use ends up on the Other Site:
    SQL Server Forums - Nested queries
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •