We recently instituted a customer loyalty program. I need to set the price level for the 900+ custoemrs with these new cards and account numbers to Price level A. Account numbers are sequential and I can query them in reports but I lack the SQL know how to make the change. Any ideas. Starting Account number is 101010 and ending is 1010955
A new twist to the issue. We have several types of numbering for account numbers including alphanumeric, and phone numbers for some accounts. Running the query suggested I get the error
ALWAYS, ALWAYS, ALWAYS BACK UP YOUR DB BEFORE RUNNING Update, Insert or Delete QUERIES!!!
accountnumber is a string, not a numeric field - put single quotes around the values...
where accountnumber between '0101010' and '1010955'
Note that '0101010' IS NOT the same as '101010' in a character field - the leading zero really does make a difference in this case.
You might want to run a select statement using the same where clause before running the update just to verify that you are getting only the records you want...
select * from customer where accountnumber between '0101010' and '1010955'
--or to get just the count of the records,
select count(*) from customer where accountnumber between '0101010' and '1010955'
Glenn Adams Tiber Creek C> I assume you instructions are for a SQL Query to be run in the
BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.