Results 1 to 5 of 5

Thread: sql query

  1. #1
    Join Date
    May 2002
    Posts
    37

    Smile Unanswered: sql query

    Is it possible to combine an if statement with sql...example:

    if x=y then
    SELECT *
    FROM tbl_comp
    else
    SELECT *
    FROM tbl_comp
    Where x<>y

  2. #2
    Join Date
    Jul 2001
    Location
    Germany
    Posts
    189
    Hello,

    in which context. In PL/SQL on Oracle ... in general ... on MS SQL Server ... ????

    Regards
    Manfred Peter
    (Alligator Company)
    http://www.alligatorsql.com

  3. #3
    Join Date
    May 2002
    Posts
    37
    It is actually MS Access 97, in the QBE Grid.

  4. #4
    Join Date
    Jun 2002
    Posts
    2
    I would not think it suports any PL/SQL at all

  5. #5
    Join Date
    Feb 2002
    Location
    North Carolina
    Posts
    13
    What you need cannot be accomplished in the QBE grid, but you can write a code module that will allow you to do what you need. Check the help and take a look at the SELECT CASE command.

    Hope it helps,
    j-Dog

Posting Permissions

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