jaymz69
asked on
create a Field for City and State that is in one field in DB2
So the city and state is in one field in the DB2
what would be the sybtex in SQL 2008 R2 to start on the far right
go back two positions (the State in two positions)
and create that as its own field?
what would be the sybtex in SQL 2008 R2 to start on the far right
go back two positions (the State in two positions)
and create that as its own field?
select right(fieldname, 2) from ...
ASKER
so that would take the state out and into its own field?
ex. 'SOMEWHERE ST'
needs to be 'SOMEWHERE' 'ST'
ex. 'SOMEWHERE ST'
needs to be 'SOMEWHERE' 'ST'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.