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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:01:30+00:00 2026-05-23T23:01:30+00:00

I have an Access .mdb database with a Table that looks similar to: +———+——+——–+

  • 0

I have an Access .mdb database with a Table that looks similar to:

+---------+------+--------+
|     date        | value |
+---------+------+--------+
|2011-05-04 12:00 | 45.9  |
|2011-05-05 12:00 | 21.2  |
|2011-05-06 12:00 | 32.2  |
|2011-05-07 12:00 | 30.4  |
|2011-05-08 12:00 | 40.4  |
|2011-05-09 12:00 | 19.8  |
|2011-05-10 12:00 | 29.7  |
+-------+---------+-------+

I would like to create a query that will return values that are derived from subtracting one value from a previous day value.

For example: The query would calculate
(21.2-45.9) and return -24.7
(32.2-21.2) and return -11.0
(30.4-32.2) and return -1.8
etc

How can I accomplish this in a SELECT statement?

  • 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-23T23:01:31+00:00Added an answer on May 23, 2026 at 11:01 pm

    Here’s the query that worked for me:

    SELECT t2.date, t2.value-t1.value
    FROM Table1 AS t1, Table1 AS t2
    WHERE t2.date=DATEADD("d",1,t1.date);
    

    Thanks again, Tom H.

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

Sidebar

Related Questions

i dont have microsoft access but would like to open an mdb file, is
For Extra Security, i would like to Encrypt/Decrypt a MS Access 2000 (*.mdb) Database
I have one Microsoft Access .MDB file and want to use that database in
I have a Access 2003 database that will dynamically load MDB databases as a
We have one .exe application that uses one .mdb Microsoft Access database. I need
I have a huge access mdb file which contains a single table with 20-30
I have access to an Oracle server that has some databases that I would
I would like to have access to the Seconds_Behind_Master field, (as returned by SHOW
I have an Access 2003 database MDB where all of the tables exist as
We have a windows MFC app that is written against an access database on

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.