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 > Adding information into one field that depends what is in another

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-17-06, 05:54
boing boing is offline
Registered User
 
Join Date: Jan 2005
Posts: 30
Adding information into one field that depends what is in another

Hi,

Im kind of stuck how to do this, i just tried using "when" and "then" commands in sql and its wiped my data.

My table is called "customer_info" and i have a field called "retailer". Retailer is dependant on a field called "clas".

Basically i would like to insert "4" into retailer where clas is equal to "glass".
And then reuse this command to do several more statements that are pretty much the same but just the values are changing.

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 08-17-06, 06:14
boing boing is offline
Registered User
 
Join Date: Jan 2005
Posts: 30
Ha, i managed to sort it with a simple update query! No help needed now.

Cheers
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