I am having a table like..
| id | name | meetingID | meeting_type | status | recurring_time | attendee_passwd | moderator_passwd | date_created | timezone | meeting_datetime | reminder | duration | created_by_id | sms_no | conferenceID | meeting_logout_url | max_participants | participants_id |
+----+------------------+-----------+--------------+--------+----------------+-----------------+------------------+---------------------+-----------+---------------------+----------+----------+---------------+--------+--------------+--------------------+------------------+-----------------+
| 7 | 6august | REG_524 | | NULL | | 90200 | 18614 | 0000-00-00 00:00:00 | GMT 5.45 | 2012-08-06 03:00:00 | 0 | 60 | 1 | 12356 | NULL | http://log.com | 20 | NULL |
I am trying to filter the table by current date so for i am using the following query
SELECT * from demo_meeting WHERE created_by_id IN(SELECT id FROM demo_user WHERE user_name = ' Sang') and meeting_datetime=curdate();
But i am getting the empty set instead of getting the result.
please tell me what i am doing wrong here
You are comparing a datetime with a date.
Try casting your datetime to a date, like this: