mysql - I need to find results that occurred in the past week? -


this question has answer here:

i have attendance table punchin_date column. i'd see results of attendance punchin_date occurred in past week.

any thoughts? tried doing date math, postgres wasn't happy attempt.

my query:

select * final_table punchin_date between current_date - 7 , current_date - 1 

this possible duplicate of how find results occurred in past week?

lots of answers there.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -