Till now I was under the impression that when we "join" two tables mainly by "inner join" the condition we test is for equality, for example:
select sales.sales_date, sales.order_id, sales.product_id, product.product_name from sales INNER JOIN product ON sales.PRODUCT_ID = product.PRODUCT_ID;
And have seen some venn diagrams which explains it, like here
In "inner join" do we always test for equality for condition?
I tried this query and I am able to see some output as well.
select sales.sales_date, sales.order_id, sales.product_id, product.product_name from sales INNER JOIN product ON sales.PRODUCT_ID != product.PRODUCT_ID;
Based on this I am bit confused what does "inner join" really mean.
Can anyone help me understand this?