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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:04:16+00:00 2026-05-25T11:04:16+00:00

Table must always store not more then 25 records. It means when I insert

  • 0

Table must always store not more then 25 records. It means when I insert new array of records, I must control total number of records and if it’s more then 25, it’s necessary to remove some old. (table has integer primary key & text field datetime of inserting). How can I manage it?

  • 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-25T11:04:17+00:00Added an answer on May 25, 2026 at 11:04 am

    I think, you just need the algorithm

    1. Insert your new records
    2. Select all entries ordered by date and check if the result has more than 25 entries
    3. If it has, get the date of the 25th. entryLast
    4. Delete all entries that are older entryLast
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to insert 800000 records into an MS Access table. I am using
I have a main table that I must get data from. I have a
When designing user table what would be the must have fields from the security/user
My table Tags has these records Application ID TagName /Blogs A75FB4D9-B0A2-45B1-A58D-9CC4E7FC1482 TagA /News E1BDEF9D-4285-464F-88DC-00495B59D2AE
I store time-series simulation results in PostgreSQL. The db schema is like this. table
I'm using MySql and am pretty new to it. I have a table which
Would the following SQL statement automatically create an index on Table1.Table1Column, or must one
Table: UserId, Value, Date. I want to get the UserId, Value for the max(Date)
table data of 2 columns category and subcategory i want to get a collection
The table doesn't have a last updated field and I need to know when

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.