Joined: 07 Nov 2007
Location: United States
Online Status: Offline
Posts: 17
Topic: Link tables Posted: 08 Nov 2007 at 1:39pm
I am trying to link two tables in a DB2 database. The only fields I can link them with have different data types (data in these fields is identical) and the database expert says link types not compatible.
Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Posted: 08 Nov 2007 at 2:07pm
I do not know DB2 but in TSQL you can convert the data type in a Select statement through CAST or CONVERT functions. If you can in DB2 (I assume you will be able to do this), then convert the data field in one table's to match the other.
I have done this before and it does solve the problem you are seeing.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum