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 > Database Server Software > DB2 > returning SQL-Result only if there is one set

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-11, 08:28
daneko daneko is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
returning SQL-Result only if there is one set

Hello together,

I have a SQL-Problem on our DB2 Databases.

As Part of a Procedure i have to add an update-statement, which searchs the data which will be inserted per select. But it ispossible, that there could be more then one result. In this case the sub select should return no results.

Is there a way to this?

Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 07-15-11, 08:55
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I guess the answer will be as detailed as your question: yes.
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