473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Uppercase all rows in SQL

hello Guys,
I'm working with some data within a table which all needs to be converted to capital's.
users added some data and now this looks pretty bad to work with.
How do I go about doing this ?
This is the current script I have but doesn't work.

Update DBA.ProductCodes_TB

SET Productcode_FD = 'ACW, ADC, ADD, AEQ, AGT, AFG, APP, APO, APP, DFW, FCI, FIB, FPB, FPV, FRR, ISD, PTP, RAL, RRN, UMF, VIS'

WHERE

ProductCode_FD = 'acw, adc, add, aeq, agt, afq, apn, apo, app, dfw, fci, fib, fpb, fpv, frr, isd, ptp, ral, rrn, umf, vis'


Any Ideas.
Sep 28 '07 #1
1 2454
ck9663
2,878 Expert 2GB
hello Guys,
I'm working with some data within a table which all needs to be converted to capital's.
users added some data and now this looks pretty bad to work with.
How do I go about doing this ?
This is the current script I have but doesn't work.

Update DBA.ProductCodes_TB

SET Productcode_FD = 'ACW, ADC, ADD, AEQ, AGT, AFG, APP, APO, APP, DFW, FCI, FIB, FPB, FPV, FRR, ISD, PTP, RAL, RRN, UMF, VIS'

WHERE

ProductCode_FD = 'acw, adc, add, aeq, agt, afq, apn, apo, app, dfw, fci, fib, fpb, fpv, frr, isd, ptp, ral, rrn, umf, vis'


Any Ideas.

in my opinion just do a

set Productcode_FD = upper(Productcode_FD)

this way, all of those that are not uppercase will be converted. for those that are already uppercase, it will return the same.

don't forget to change your script that insert records to the table. you might have to keep doing this if you don't change it on that level
Sep 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: Hallvard B Furuseth | last post by:
Has someone got a Python routine or module which converts Unicode strings to lowercase (or uppercase)? What I actually need to do is to compare a number of strings in a case-insensitive manner,...
8
by: Markus Dehmann | last post by:
My ios::uppercase (and others) seems not to work. #include <iostream> using namespace std; int main(){ int num = 45; cout.setf(ios::hex | ios::showbase | ios::uppercase); cout << "number " <<...
13
by: GRoll21 | last post by:
I know there is a function but I cannot seem to find it. There should be a way to uppercase a char right? Here is what I got. cout << "Enter title of a book for look up: "; cin >>...
2
by: Thomas McK | last post by:
Hi all, I'm trying to make a SQL query (against a table in MS Access) where I want to take the value of something, and check to see if the first two letters in that value are capitalized (for...
1
by: Beffmans | last post by:
How can I turn the Uppercase mode on in my TextBoxes? ch B. *** Sent via Developersdex http://www.developersdex.com ***
7
by: OHM | last post by:
Hi Guys, I wouldnt normally ask for help on this but Im really strapped for time. Does anyone know how I can force characters in a DataGrid cell to uppercase as they are typed. Cheers - OHM
1
by: Carmen | last post by:
how to format my datagrid control for only write on it in upper case. Also i want to sort my datagrid control automatically for the column number 4. Any ideas.
6
by: feeman | last post by:
I can change a field to upper case by using the after event function and the following code Me. = UCase(Me.) But how can you do it so that the whole form will change to Uppercase, there are...
6
by: BSHELTON | last post by:
How do I convert existing lowercase data to uppercase in Access 2000? I used the following which did not work? UPDATE HousingTowns SET tMunis=UPPER(tMunis); "HousingTowns" is the table name....
4
by: Hrsoft | last post by:
I'm a newbie with asp.net I need to transform a user textbox to uppercase, when typing. Is this possible? I read about Ajax Maskedit, but it is only to certain formats, like dates, etc Thanks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.