Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONCAT with Different Field Types

Status
Not open for further replies.

ckiklas

MIS
May 30, 2002
12
US
I am very new to DB2...I can do this in Oracle or SQL Server, but can't quite get the syntax right for DB2.

I need to create a new field based on two other fields.

Field1 = Numeric
Field2 = Alpha (but always contains numbers)

NewField = Numberic ( Field1 and Field2 together)

I tried using:

Field1 Concat Field2
and
Field1 || Field2

Which is when I realized the field types didn't match. Converting the field types is my biggest issue.

Thanks in advance.

-chris.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top