i am trying to create new column from existing column(table) in a new table.
this is my old table
projectnum allw budjet
648PE2075 152.00 230.00
648PE2075A 33.33 00.00
333AD0221B 125.11 1256.00
123CF0023 125.22 215.33
I need to create a new table that have a new column called Project_code created from projectnum column and all the old columns. looks like this
projectnum Project_code allw budjet
648PE2075 648-075 152.00 230.00
648PE2075A 648-075-A 33.33 00.00
333AD0221B 333-221-B 125.11 1256.00
123CF0023 123-023 125.22 215.33
My challeng is when i try to write t_sql statement. some records of projectnum are 10 character rest 9 character. Help Please