Results 1 to 3 of 3

Thread: Search parameters

  1. #1
    Join Date
    Apr 2004
    Posts
    21

    Search parameters

    MS SQL only, please.
    Need a WHERE term that will return all the rows in the table thus:

    Select * FROM Business
    WHERE BusinessName =

    What, placed after the equal sign, will return every row in the table? Spent all afternoon trying to figure this one out and haven't found it yet. This is the one needed to use the multiple search parameters.

    Thanks in advance

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Select * FROM Business
    WHERE BusinessName = BusinessName

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Don't use WHERE clause and it will return all rows

    Select * FROM Business

    if it must be used then any true condition can be used

    Select * FROM Business
    WHERE 1=1

Posting Permissions

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