Quantcast
Channel: SCN : All Content - SAP IQ
Viewing all articles
Browse latest Browse all 716

Sybase-IQ : Query with join returns always 0 rows (but count(*) give rows)

$
0
0

Hello,

 

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 innerjoin B on A.ID = B.ID;

The result of the count is 5 661 188.

 

If I make the following query :

select*from A innerjoin B on A.ID = B.ID;

The result is 0 row !

 

If I make the following query :

select A.field1 from A innerjoin B on A.ID = B.ID;

The result is 5 661 188 rows.

select A.field2 from A innerjoin 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


Viewing all articles
Browse latest Browse all 716

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>