Link to home
Start Free TrialLog in
Avatar of schmir1
schmir1Flag for United States of America

asked on

SQL to convert to upper case

I need to convert a text in a field called "Bin" to upper case.  I am using Access 20007 front-end and SQL 2005 backend.   Example:
  Table - Inventory, Bin=abc
After convertion:
  Table - Inventory, Bin=ABC
Avatar of chapmandew
chapmandew
Flag of United States of America image

select BIN = upper(bin), otherfields
from yourtablename
SELECT BIN = UCase(BIN)
FROM YourTableName

mx
Try:
SELECT UCase(BIN) as bin FROM Inventory
SOLUTION
Avatar of chapmandew
chapmandew
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
UPDATE Table1 SET Table1.BIN= UCase([BIN]);

Make a backup first.

mx
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of schmir1

ASKER

I used the Update Query because I want the changes saved.  I used the Access version but it is good to know the SQL 2005 version.  Thanks for all your help.