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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:24:43+00:00 2026-05-26T08:24:43+00:00

I am inserting data into a table in Sqllite DataBase which are ever increasing

  • 0

I am inserting data into a table in Sqllite DataBase which are ever increasing , if it decreased at some time, it uses the last increased value as base. See the following table where fields are Application, time and Data Captured at that time.

>1. YouTube     04:10PM     200KB 
>2. YouTube     04:20PM     400KB
>3. YouTube     05:10PM     100KB 
>4. YouTube     06:10PM     200KB
>5. YouTube     07:10PM     600KB 
>6. YouTube     08:10PM     500KB
>7. YouTube     08:40PM     700KB
>8. YouTube     08:40PM     100KB
>9. YouTube     09:10PM     200KB 
>10. YouTube        10:10PM     600KB

As data decreased in 3 , from 3 to 6(i.e till data are increasing), i need to access 2. Again in 6, Value is decrased. So from 6 to 7, i need to access last increased value in 5. Again in 8, the Value is decreased. So from 8 to 10, i will access last increased value in 7.

So basically I will use the last increased value. I can’t find a proper sql query which will get me the last increased value from my database

  • 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-26T08:24:44+00:00Added an answer on May 26, 2026 at 8:24 am

    If I understand you question correctly MAX(Data Captured) should do the trick

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

Sidebar

Related Questions

I am inserting data into a table by selecting from another table which may
I've got a classic case of UPDATE or INSERTing some data into a table.
I have a problem with inserting data into SQLite database using QSqlTableModel. The table
I'm writing a routine that validates data before inserting it into a database, and
I am inserting data into a mySQL database, but I am inserting banking details
I am loading some data into a temp table. I then use a cursor
I am getting strange error while inserting data into mysql table column. Details: Create
Hi i am having problem inserting data into multiple table from one view. First
I am inserting data into a table and sqlite3_step returns SQLITE_DONE. But sometimes there
There are ways of inserting data into table: insert into MyTable (ColA, ColB, ColC)

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.