View previous topic :: View next topic |
Author |
Message |
lacoe1 Beginner
Joined: 24 Feb 2005 Posts: 33 Topics: 17
|
Posted: Thu Jul 08, 2010 12:56 pm Post subject: Join and compare Decimal type column with Char Column |
|
|
In a sql how do I join these 2 types of columns ?
Table A : Col-A is defined DECIMAL ( 6, 0) NOT NULL
Table B : Col-B is defined CHAR (6) NOT NULL
Is this correct?
DECIMAL(B.COL-A,6,0,',') = C.COL-B |
|
Back to top |
|
 |
lacoe1 Beginner
Joined: 24 Feb 2005 Posts: 33 Topics: 17
|
Posted: Thu Jul 08, 2010 1:00 pm Post subject: Join |
|
|
Sorry I did it reverse last time
In a sql how do I join these 2 types of columns ?
Table A : Col-A is defined CHAR (6) NOT NULL
Table B : Col-B is defined DECIMAL ( 6, 0) NOT NULL
Is this correct?
DECIMAL(A.COL-A,6,0,',') = B.COL-B |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Jul 08, 2010 1:14 pm Post subject: |
|
|
lacoe1,
You can use
Code: |
CHAR_COL = DIGITS(DECIMAL_COL)
|
Kolusu |
|
Back to top |
|
 |
|
|