Results 1 to 6 of 6

Thread: VERY Tricky SQL! Can you do it?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    RSINGH if you look at the QueryAnalyzer's resultset. HOw can I move through this RS and display only the unique Qtext?

  2. #2
    Fanatic Member RSINGH's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    522
    Could you do a select DISTINCT to get the unique questions? For what purpose do you want the unique questions? Is this a separate requirement from the above SQL? If so its a new query.

    The distinct keyword will eliminate the duplicates.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    The reason is because I am dynamically building an asp page. See the link and how the page loads the repetitive data. I just need to find a way to move through the rs.

    http://codeexamples.4t.com/dyn.jpg

  4. #4
    Fanatic Member RSINGH's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    522
    Unfortunately my ASP is not good enough(I've only just started). Its hometime for me - so I'll give it a thought over the weekend. It may only be pseudocode though!

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    all I need to know is how to move through the rs. The asp is easy for me.

    thanks

  6. #6
    Fanatic Member RSINGH's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    522
    For and AOD recordset is it not rs.movenext ?

Posting Permissions

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



Click Here to Expand Forum to Full Width