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 > General > Chit Chat > SQL Help on "Update/Fetch" needed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-04, 00:10
Amusix Amusix is offline
Registered User
 
Join Date: Jun 2003
Posts: 5
Post SQL Help on "Update/Fetch" needed

All:
I am trying to formulate a DB2 SQL query:
Requirement. Need to pick a 100 records for a particular Column value & change the value.
Query I need:
"update s_contact_xm set x_suppress_reason='CM' where row_id in (Select row_id from s_contact_xm where x_suppress_reason='DD' fetch first 100 rows only)

Suggestions/workarounds appreciated
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 18:47
AMU6 AMU6 is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Re: SQL Help on "Update/Fetch" needed

This will be entirely unhelpful to you, and I should probably send you a PM, but I have to ask where you got your nick.

Not that I feel that I have any sort of ownership of it, but I've been using "AMUSIX" for about 15 years, and am just surprised to see someone else with the same nick. Also wondering if I should reregister my now-defunct audio production company "AMUSIX Inc."
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