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 7905959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:42:22+00:00 2026-06-03T10:42:22+00:00

Hi I have to retrieve from my table most recent records that match a

  • 0

Hi I have to retrieve from my table most recent records that match a given MM-YYYY, but the date field in the table is DD-MM-YYYY, how do I get this done?

Thank you very much

Best Regards
Ignacio.

  • 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-03T10:42:23+00:00Added an answer on June 3, 2026 at 10:42 am

    How many of the most recent records do you need?

    Could you not query for all the dates in the relevant month, order by the dates, and then only select the results you need from the top of the list.

    For example:

    SELECT TOP(1) * 
    FROM your_table 
    WHERE date_time_field >= '20120101' 
      AND date_time_field < '20120201' 
    ORDER BY date_time_field DESC
    

    This would select the most recent record from January of this year.
    Change the number inside the TOP() statement to change the number of results returned, or leave it off altogether and take comfort in the fact that your results are ordered.

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

Sidebar

Related Questions

I want to retrieve the most recent requestid from table tblquoteproposal` for perticular customerId
I have the following code, which will retrieve a filename from a table and
I have a HTML table as follows. I want retrieve row values from this
i have a stored procedure that has to retrieve data from multiple tables something
I have a list of record Id's that I want to retrieve from Sql
Let's say I have a string that I retrieve from a DB like: Lorem
I have written a script that fires a jQuery POST to retrieve data from
I have an sql statement as below attempting to retrieve the most recent entries
I have two tables(Friends and News_Feed). I need to retrieve the most recent rows(highest
i wan to retrieve data from query involving many tables. i have a query

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.