If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > sql query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-02, 17:07
caustin0 caustin0 is offline
Registered User
 
Join Date: May 2002
Posts: 37
Smile 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
Reply With Quote
  #2 (permalink)  
Old 05-03-02, 17:11
alligatorsql.com alligatorsql.com is offline
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old 05-06-02, 09:15
caustin0 caustin0 is offline
Registered User
 
Join Date: May 2002
Posts: 37
It is actually MS Access 97, in the QBE Grid.
Reply With Quote
  #4 (permalink)  
Old 06-21-02, 05:50
Bolti Bolti is offline
Registered User
 
Join Date: Jun 2002
Posts: 2
I would not think it suports any PL/SQL at all
Reply With Quote
  #5 (permalink)  
Old 06-21-02, 16:49
jaydog96 jaydog96 is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On