Need SQL help

polina

Registered User.
Local time
Today, 20:37
Joined
Aug 21, 2002
Messages
100
Hi

i have a simple question
i need a sql statement that will replace all '950' to '1' and all '957' to 2 in my Model column of the BlackBerry table.
Please advise the code

Thanks
 
Excuse me asking, but why don't you just run an update query?
 
UPDATE BlackBerry SET BlackBerry.Model = IIf([Model]="950","1",IIf([Model]="957","2",[Model]));

If Model is not a text field but rather a number, remove the "

HTH
 

Users who are viewing this thread

Back
Top Bottom