0

I have a very strange comportment on my sybase-iq database.

I have 2 tables :

Table A : 47 000 000 rows

Table B : 497 rows

If I make the following query :

select count(*) from A
inner join B on A.ID = B.ID;

The result of the count is 5 661 188.

If I make the following query :

select * from A
inner join B on A.ID = B.ID;

The result is 0 row !

If I make the following query :

select A.field1 from A
inner join B on A.ID = B.ID;

The result is 5 661 188 rows.

select A.field2 from A
inner join B on A.ID = B.ID

The result is 0 row !

I execute these queries with Interactive SQL (Sybase Central).

I've tried also to execute these same queries with the ETL Talend, and i got same results as above.

Any ideas why we have these very strange results ?

Thanks

4

1 回答 1

1

当我更改选项 JOIN_PREFRENCE 时结果正常。此版本的 Sybase IQ (15.2) 可能存在问题。见这里:http ://scn.sap.com/message/15605021

于 2014-12-11T14:07:45.500 回答