Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    2

    Unanswered: Want to Retrieve one record only

    Howdy,

    Might sound like a too basic question but can anyone help me with a query that only returns one row from the table?

    Thanks in advance

  2. #2
    Join Date
    Oct 2001
    Location
    Naples, FL
    Posts
    273
    Without knowing what this one row should be, how about

    select top 1 * from table
    order by column

    If you need something more specific, post more details.

    HTH
    ---------------
    Ray Higdon MCSE, MCDBA, CCNA

  3. #3
    Join Date
    Sep 2003
    Posts
    2
    Thanks a lot! Thats what I was looking for.

    Originally posted by rhigdon
    Without knowing what this one row should be, how about

    select top 1 * from table
    order by column

    If you need something more specific, post more details.

    HTH

Posting Permissions

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