Results 1 to 2 of 2

Thread: sql

  1. #1
    Join Date
    May 2002
    Posts
    37

    Question sql

    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
    Dec 2001
    Location
    Delhi/Bangalore, India
    Posts
    74
    This should work in standard SQL implementations...including PL/SQL and MS SQL Server.

Posting Permissions

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