Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> sql database problem

sql database problem

From: Mark Thomas <mark.thomas5_at_dtn.ntl>
Date: Sun, 19 Mar 2000 21:33:33 -0000
Message-ID: <5PbB4.2397$5b5.85410@news2-win.server.ntlworld.com>


can anyone help with this problem:

i need to head a column short_town showing in upper case the 3 left most characters of towns.
what have i done wrong below?
only SHO is shown not short_town

select acc_no, upper(substr(town,1,3)) short_town from customer
where county like 'S Glam%';

ACC_NO SHO
---------- ---

    107543     CAR
    106291     PEN
    197333     CAR
    246082     BAR
    159200     LLA
    166937     CAR
    114905     BAR
    123720     CAR

thanx in advance

mark Received on Sun Mar 19 2000 - 15:33:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US