473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do perform calculation in the same table?

Hello Everybody!

I'm very new to this forum. Google take me here after seaching for help. I don't know if this is possible or not.

I want to calculate the time differernt between samples had been taken. They are storing in the same table. Here is an example

Time Value
10:00 20
10:25 25
10:40 35

etc.

How can I write a select statement to return the time different between two consecutive sample?

Thanks
Alan
Jul 31 '07 #1
2 888
r035198x
13,262 8TB
Hello Everybody!

I'm very new to this forum. Google take me here after seaching for help. I don't know if this is possible or not.

I want to calculate the time differernt between samples had been taken. They are storing in the same table. Here is an example

Time Value
10:00 20
10:25 25
10:40 35

etc.

How can I write a select statement to return the time different between two consecutive sample?

Thanks
Alan
Hi and welcome to TSDN.
Which database are you using? If you post the question in the relevant database forum you'll be able to get help quicker.
P.S Most databases have a list of date functions available for adding and subtracting dates e.t.c
Jul 31 '07 #2
bartonc
6,596 Expert 4TB
Moving to Misc. Q.s until the OP responds with environment/tools information.
Jul 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: maceo | last post by:
I have some code that extracts the data from a table and performs a calculation (total time) on one of the columns. Here is the code: <?php /* Database connection */
2
by: Del | last post by:
Thanks in advance for any help. I have a database that was created in Access 2000. Several users have been upgraded to Access 2003. Since upgrading to 2003 we have noticed that some of the...
7
by: peter | last post by:
I have created a MS Access query where one of the fields displays the week number. The field is a date value that uses the ww format to display the week number. However, when I try to create a...
1
by: gjoneshtfc | last post by:
Hello, I have an asp page that is a table. In the table the end column is a calculation of other values, for example: ...
10
by: 60325 | last post by:
This is the page where I collect the data in drop-down boxes with values of 1-10 and send it to a submitted page to do calculations. Example: Employee1 TeamScore(1-10) Employee2 ...
133
by: muhes | last post by:
Hello, I am working on a project for my department to design a form to calculate budgets. I really don't know much about access or programming in general. At this point, I am trying to design a...
5
by: buddyr | last post by:
I have one table in microsoft access database. I need to perform calculation on a field- then a conditional statement between 2 fields. field2 - needs to be multiplied by 5 the answer needs to...
4
by: wrldruler | last post by:
Hello, First, I know it's against "Access Law" to save calculations in a table, but....I want/need to. I currently have sub-totals being calculated inside a form, using DMax, DCount, and...
5
kcdoell
by: kcdoell | last post by:
Hello: I thought I was done with this one but a user who is testing my DB just pointed out a problem. I used the following in the afterupdate event: Private Sub...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.