I have two table one is index and another is the price structure as under
table: index
columns: trandate, indexcode
table: price
Columns: truncate, symbol, price
I want to know the missing price. For that I issue the query:
select i.trandate,i.indexcode,p.trandate,p.price
from index i
left join price p on i.trandate = p.trandate
where p.symbol='ABC' and indexcode="New"
The above query does not show the null date even though various price in missing in price table. Only reason i understand is that the index table does not have the symbol field that's why...but as per theory if you want to show all the rows of one table and only the match value of another table then use the left or right join query...please anybody can help?