|
|
Archives of the TeradataForum
Message Posted: Fri, 26 Jul 2002 @ 08:02:12 GMT
Subj: | | Re: Dec(18,0) |
|
From: | | David Clough |
I tried that which you had problems with and got the correct results returned (i.e. it brought the correct row back).
This is what I did:
create table Table_AAA (
Key_col1 dec(18,0)
,ADate_col2 date
,AChar_col3 char(5)
,Another_Dec_col4 dec(3,0) title 'ADEC')
UNIQUE PRIMARY INDEX(Key_col1);
ins into Table_AAA values (104230608995498370, '2002-07-24', 'AAAA',100);
ins into Table_AAA values (214555555555567800, '2002-07-25', ' BBBB', 200);
ins into Table_AAA values (333333333333333500, '2002-07-26', 'CCCC', 300);
Sel * from Table_AAA where Key_col1 = 333333333333333500;
Result :
Key_col1 ADate_col2 AChar_col3 ADEC
333333333333333500 2002-07-26 CCCC 300
Hmmm ...... is my definition above exactly the same as yours? (by the way, I tried NUPI as well as UPI and that worked correctly as
well). Sorry, can't reproduce the error.
Dave Clough - TNT
| |