Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Getting different No of Columns on same postgres cross join query

I am trying to execute cross join query in tDbInput but it is showing different no of columns in output than the same query i executed in PgAdmin 4.

Query:-

select q.date,p.personid,p.timestamp,q.voucherno 
from person p 
cross join purchase q 

Talend Output:-

0683p000009M7nc.png

 

PgAdmin4 Output:-

0683p000009M8GE.png

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi,

 

    I believe you are trying to say row count is different when you run query (instead of difference in column count as mentioned in your above).

 

    Did you print the data from both systems and try to check the output data? Also please check whether you are connecting to same DB.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

 

 

Anonymous
Not applicable
Author

yes i wanted to say row count i checked both databases and schema as well. but still there is difference in rows when executing query in pgAdmin and in dbRow

Anonymous
Not applicable
Author

Hi,

 

   Did you check the data for missing records? Are they having same primary key or are they having null values? Any patterns you could find from the data?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved