I have 2 tabels A and B. These 2 tables have 1 coloumn in common : A.A1 and B.B1. Table A has 800 rows and table B has 500 rows. Clearly, some rows in table A dont have any matching rows in table B. Now, i want to see "what rows in A that do not match row in B" by issuing this query :
select * from A
LEFT JOIN B on A.A1 = B.B1
where date(b.trt_date) = '2017-11-18' and a.tcs_type = 'SALES'
order by a.tcs_no asc
This query gives out result the same as INNER JOIN. Why ?
When I put this query into a VIEW, it gives out the expected result
This should be dead simple. I am just confused.
I am using : mysql, navicat, sqlyog