Hi everyone,
I need to get the records for the current month from two tables. I know how to do it with one table. im using the following query for it:
This is giving me records for the one table only. but how i can get records from two tables?
please tell me.
Thanking you.
Faisal
I need to get the records for the current month from two tables. I know how to do it with one table. im using the following query for it:
Code:
SELECT * FROM mytable WHERE YEAR(date_column) = YEAR(CURDATE()) AND MONTH(date_column) = MONTH(CURDATE())
please tell me.
Thanking you.
Faisal
Comment