Hi
i have two tables like below
table1 | table2 | |||||
ID | COL1 | COL2 | ID | COL1 | COL2 | |
1 | 1 | 2 | 1 | 1 | 2 | |
1 | 3 | 4 | 1 | 3 | 4 | |
1 | 1 | 5 | 6 | |||
1 | 1 | 7 | 8 | |||
2 | 1 | 2 | 2 | 1 | 2 | |
2 | 3 | 4 | 2 | 3 | 4 | |
2 | 5 | 6 | 2 | 5 | 6 | |
2 | 7 | 8 | 2 | 7 | 8 |
I want to find the id where it matches all rows for the id with second table
When i query in hana I am getting both id's
As only one id i.e id 2 matches all rows with second table i am getting id 2 as expected but i am getting id 1 aswell though all the rows dont match..
I tried all joins Please help me.