php - Query to use in backend to retrieve all contacts with recent sent date less than or equal to some date -



php - Query to use in backend to retrieve all contacts with recent sent date less than or equal to some date -

in task want query retrieve contacts recent sent date, on status less or equal fixed date.

actually have 1 table name xxx contains email, name, , sentdate.

each year 2006 2012, mail service sent each email contact. contacts still mail service sent every year 2006 2012. contacts mail service has not been sent after 2007. contacts have received mail service more others.

i need query retrieve contacts lastly sent date less or equal date (for example, "01-01-2010").

select * `xxx` `last_sent_date`<='some_date'

php mysql

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -