MySQL Forums
Forum List  »  General

WHERE clause with INNER JOINS not working
Posted by: Pedro Guimaraes
Date: February 08, 2015 07:18AM

Hi folks,

I have a SELECT with several INNER JOINS and a WHERE at the end. But the WHERE does not work accordingly. The field exp_continuum_log.timestamp is a varchar(16)

Thanks a lot.

SELECT * FROM `exp_continuum_log` INNER JOIN `exp_continuum_urls` ON exp_continuum_log.url_id = exp_continuum_urls.url_id INNER JOIN `exp_continuum_users` ON exp_continuum_log.user_id = exp_continuum_users.user_id INNER JOIN `exp_member_data` ON exp_continuum_users.member_id = exp_member_data.member_id INNER JOIN `exp_sites` ON exp_continuum_log.site_id = exp_sites.site_id WHERE exp_continuum_log.timestamp >= '1423245571' ORDER BY exp_continuum_log.timestamp DESC;

Options: ReplyQuote


Subject
Written By
Posted
WHERE clause with INNER JOINS not working
February 08, 2015 07:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.