
February 26th, 2008, 04:07 AM
|
|
Registered User
|
|
Join Date: Feb 2008
Posts: 3
Time spent in forums: 54 m 16 sec
Reputation Power: 0
|
|
|
Convert data
In a table, i have a varchar field (K), which consists of data such as: 31293/012
I require the first three characters of this which i can get by using the syntax: SUBSTRING(K, 1, 3)
This gives me 312
From this, how can convert this and other numbers to text (char)?
For example, i have 3 records and would to convert them as follows:
312 - AAA
313 - BBB
314 - CCC
any solutions??
Thanks.
|