Hi All,
I am encountering this wierd scenario in denodo.
3 records are not displaying when I query based on the name, and 3 records are being displayed when I query based on the id from the derived view.
Denodo version: denodo platform 5.5
I have table1, table1 & table3
I am joining these tables in denodo.
In the vql shell and also in the source database
Query:
select table1.name, table1.id, table1.dob, table1.joindate, table2.location, table3.location_name
from table1, table2
where table1.id=table2.pid
and table1.locale=table2.location
and table1.locale=table3.location_name
and table1.name ='tom'
Results:
tom, 1000, 1/11/1986,1/1/2010,chicago,chicago
tom, 1001, 10/11/1988,11/1/2011,new york,new york
tom, 1121, 5/1/1978,3/10/2012,dallas,dallas
if I run the query using the derived view:
Query1:
select dv1.name, dv1.id, dv1.dob, dv1.joindate, dv1.location, dv1.location_name where dv1.name ='tom'
Results for query1:
tom, 1000, 1/11/1986,1/1/2010,chicago,chicago
when i checked the execution trace, it shows HASH JOIN & SORTER MERGE when it is joining table1_table2 with table3.
Query2:
select dv1.name, dv1.id, dv1.dob, dv1.joindate, dv1.location, dv1.location_name where dv1.id in (1000,1001,1121)
Results for query1:
tom, 1000, 1/11/1986,1/1/2010,chicago,chicago
tom, 1001, 10/11/1988,11/1/2011,new york,new york
tom, 1121, 5/1/1978,3/10/2012,dallas,dallas
Please advise why the 3 records are not displaying when I query based on the name.
and 3 records are being displayed when I query based on the id.