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

  • SEARCH
  • Home
  • 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 8674933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:49:40+00:00 2026-06-12T19:49:40+00:00

How to get date range between two columns? SELECT ccm.`date_from` , ccm.`date_to` , ccd.`rate`

  • 0

How to get date range between two columns?

SELECT
     ccm.`date_from`
    , ccm.`date_to`
    , ccd.`rate`
FROM
    `currency_conversion_master` ccm
    , `currency_conversion_details` ccd

WHERE ccm.conv_m_id=ccd.conv_m_id AND DATE(date_from)>=DATE('2012-10-12')  AND DATE(date_to) <= DATE('2012-10-14') 

in this way query does not filter the record when i put 2012-10-13.

I mean as

DATE(date_from)>=DATE('2012-10-13')  AND DATE(date_to) <= DATE('2012-10-14')

How do i do this?

This is the database structure with data

date_from   date_to
2012-10-12  2012-10-14
2012-10-15  2012-10-19
2012-10-20  2012-10-30
  • 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-06-12T19:49:41+00:00Added an answer on June 12, 2026 at 7:49 pm

    use

    SELECT
        ccm.`date_from`,
        ccm.`date_to`,
        ccd.`rate`
    FROM
        `currency_conversion_master` ccm
    INNER JOIN `currency_conversion_details` ccd 
    ON ccm.conv_m_id=ccd.conv_m_id
    WHERE '2012-10-12' between DATE(date_from) and DATE(date_to)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to select data between two date range. However not all data are
I want to get date range between from and till in Rails seed. When
I want to select rows that falls between some date range, I tried the
I can get the 15/02 - 21/06 date range data on every year from
I want to get models whom date is within a date range. So I
I am using the Date Range Picker (http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/) plugin and need to get the
I'm trying to get the week range using Sunday as the start date, and
i am trying to get date from my implementation of jquery date picker, add
I am trying to get date from Jquery ui date-picker by dropping some events
i'm trying to get date from UIDatePicker (MM-dd format) and to check if its

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.