Hi all,
I had posted a problem,and I didn't get the obvious solution, can you help me please:
My table looks like the following:
Date\Time Counter1 Counter2
The counters are taken by an automatic system in three shifts:
First in : 6:00 AM Second in: 15:00 PM Third in : 11:00 PM
I want a query to calculate the difference of the counters between the three shifts (Let's begin with this).
For example: The following table
22/11/04 11:00 PM 0 0
23/11/04 6:00 AM 10 20
23/11/04 15:00 PM 20 30
23/11/04 23:00 PM 30 40
The output is:
23/11/04 6:00 AM 10 20
23/11/04 15:00 PM 10 10
23/11/04 11:00 PM 10 10
I'm new I the SQL world. can you please help me and give me sum information to solve the problem.