MySQL Forums
Forum List  »  Newbie

Between dates ?
Posted by: Johan Andersson
Date: June 05, 2015 02:41AM

I have this query

select
u1.user_name as `user_name being followed`,
u2.user_name as `follower_name that followes`,
ua.*
from users u1
join users_followers uf on uf.user_id=u1.user_id
join users u2 on u2.user_id = uf.follower_id
join user_activity ua on ua.user_id = u2.user_id
where u1.user_name='demo'
order by ua.activity_timestamp


but i only want to fetch query between column follower_since_timestamp in table users_followers and now().

How do i do this? Thanks!

Options: ReplyQuote


Subject
Written By
Posted
Between dates ?
June 05, 2015 02:41AM
June 05, 2015 12:26PM


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.