Hi i need some help for the mysql query. I wanted to display all data from TABLE A no matter what and at the same time shows whether TABLE B had pass current date or not, even the date has pass i still wanted to show all TABLE A result.
TABLE A
AID
NAME
ADDRESS
TABLE B
BID
DETAIL
DATE
AID
SELECT a.*, b.bid
FROM TABLE A
LEFT JOIN TABLE B
ON A.AID = B.AID
WHERE date > DATE_SUB(CURDATE(), INTERVAL 1 DAY) //how to play with this?
Please help me out.
1 Answer