Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1101699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:04:22+00:00 2026-05-17T01:04:22+00:00

what is the different from this mysql query: WHERE MONTH(date) = MONTH(CURRENT_DATE) and this

  • 0

what is the different from this mysql query:

WHERE MONTH(date) = MONTH(CURRENT_DATE)

and this

WHERE date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH) AND CURRENT_DATE()

i have tried both but i cant see the different.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:04:22+00:00Added an answer on May 17, 2026 at 1:04 am

    For today’s CURRENT_DATE, i.e.: 23-September-2010:

    WHERE MONTH(date) = MONTH(CURRENT_DATE) is date also in September, i.e. between 01-September and 30-September of any year.

    WHERE date BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH) AND CURRENT_DATE() is date within the last 30/31 days. If we’re on 23rd, this will give you an interval between 23-August-2010 and 23-September-2010.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I wrote this code: typeof(myType).TypeHandle Would it use reflection? How much different from:
This code is from Prototype.js . I've looked at probably 20 different tutorials, and
I've got a problem similar to,but subtly different from, that described here (Loading assemblies
Both System.Timers.Timer and System.Threading.Timer fire at intervals that are considerable different from the requested
How is profiling different from logging? Is it just that profiling is used for
How is it different from normal ASP.net development? Anyone has valuable cool links/videos/tutorials for
How is parseInt() different from valueOf() ? They appear to do exactly the same
Virtualizing the mobile is way different from virtualizing the server or the desktop, where
I got a core that looks very different from the ones I usually get
What is iPhone's browser tag and how iPhone optimized web site is different from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.