Hi,
I have below two tables.
table1
ID | Desc |
1 | abc |
2 | def |
3 | ghi |
4 | jkl |
table2
ID | Revenue |
1 | 100 |
1 | 200 |
1 | 300 |
2 | 400 |
2 | 401 |
2 | 402 |
3 | 403 |
3 | 404 |
3 | 405 |
4 | 406 |
4 | 407 |
4 | 408 |
i have executed below query.
select t."ID",t."Desc",t1."Revenue"
from "table1" as t
inner join "table2" as t1
on t."ID" = 1.0;
Result:
So my question is why its fetching records from table2 in which ID <> 1?
It should only fetch records from table 2 where ID = 1 only.
I think I am lacking my understanding in case of joins somewhere.
Please explain.
BR
Sumeet