hi i have players table in mysql .
i need to select inactive players who have not played a match for 6 months in the league .
for example ->
select * from players where player (matchplayed == true && (in last 6 months condition));
i am newbie in mysql
so will like some help how to deal with time .
some thing like this may work:
DATE_SUB(curdate(),INTERVAL 6 MONTH) will give you the interval of last six months from current date. Which you can use to check the
lastmatch_playeddateis greater than it or not.Hope this helps .