How to select a day say thursday from a date in the mysql select query and use this day to select some other values in same table
select id,music_id,contest_no,today,exp_date,start_hour,start_minute,start_ampm, DAYNAME(today) as chday
from hit_music_content
where
exp_date>='2010-07-30' and
today between '2010-07-30' and '2010-08-05'
limit 0,5
I want if this query is true then select all the values from hit_music_content on some day say friday but How?