calculate balans

Hi all

I want to make a calculation, but don't know how or if it's possible. See header balans how the calculation is made.

Is it possible to do it with sql?

year obligation spent Balans
2012200001000020000 - 10000
2013150000(20000 + 15000) - (10000 + 0)
201420000750(20000 + 15000 + 20000) - (10000 + 0 + 750)

Kind regards

Diana

What:

SELECT the year, Obligation,

, The SUM of ((duty - last)) ON the balance (ORDER BY year)

Tab1 t

ORDER BY year

Tags: Database

Similar Questions

  • Storage on screen tab "about this Mac" never ends calculate

    On my MBP 15 "retina running macOS Sierra, when I opened"About this Mac", then click on the button 'Storage', the line that represents my hard drive appears with the word"Calculation"... "in the bar gray, but nothing else happens.  It's as if she never ending calculate, it's just stuck there.  Sometimes If I reboot, then go back, it will show the distribution of documents, photos, etc., but not always.  In the screenshot below, the window had been opened a good 30 minutes.

    ... And Yes, I 'm on a Wi - Fi connection and strong.  :-)

  • How to calculate through leaves

    Hello. I have a document of numbers with multiple sheets. How can I calculate the subtotals of each sheet to a cell on the last sheet?

    Thank you

    On the last sheet, start typing the formula by typing the equal sign '=', then click on the first cell (on the other sheet) you want to total, and then click the next cell (on another sheet), and then click the last cell (lon yet another sheet), then type "enter".

    Number automatically includes the "+" for you

  • Calculate the average per slot?

    Hi Chaps,

    I am a beginner on numbers (almost everything on Mac I would say) and I need help to calculate average values.

    These are calculated values (column 2) taken on a specific time of the day (column 1).
    I managed to create a third using a built-in function to get the time slot (column 3).

    14:58:42

    235

    14

    14:59:42

    274

    14

    15:00:50

    7937

    15

    15:01:55

    5157

    15

    16:02:57

    1822

    16

    16:03:57

    207

    16

    Can please somebody see me step by step how to calculate the average by time slot as below?

    14

    254,5

    15

    6547

    16

    1014,5

    Kind regards

    Stone

    This can help you

    Assuming you data in a table named 'Data' and the information is summarised in another table (right) named "Summary".

    Select cell B1 in the summary table and then type (or copy and paste from here):

    = SUMIF(Data::C,a1,Data::B) ÷COUNTIF (Data::C, a1)

    shortcut for this is:

    B1 = SUMIF(Data::C,a1,Data::B) ÷COUNTIF (Data::C, a1)

    Select cell B1, copy

    Select column B, paste

  • I want you to help because the phone asking me to become a frequent and annoying enter a password to calculate the icloud

    Hello

    I want you to help because the phone ask me for becoming a frequent and annoying password to calculate the icloud, and I do not know because I bought a phone from someone else is not new Hama is on the phone (*) No. account. IMEI (*) Please help me soon thank you

    < post branched out by host >

    < personal information under the direction of the host >

    Robert Odamat says:

    Hello

    I want you to help because the phone ask me for becoming a frequent and annoying password to calculate the icloud, and I do not know because I bought a phone from someone else is not new Hama is on the phone (*) No. account. IMEI (*) Please help me soon thank you

    < post branched out by host >

    < personal information under the direction of the host >

    Find my iPhone Activation Lock - Apple Support

    There is nothing you can do to get around activation icloud blocking without recovering the former owners information.

    Communicate with the person that you bought the phone.

  • calculator will not calculate

    When you try to calculate what percentage one number is another number, the calculator does not give the right answer. It's something that started the month last in my IPhone 6. For example, dividing 5 by 10 and press the percent key. The answer given est.1. Divide 10 by 5 and the answer given est.05. Of course, I know how to get the right answer, but since it is a recent change in the IPhone calculator, I wonder if a key has been changed in an update or if there is something else wrong. I could any ideas or suggestions on something, have done to cause the problem?

    sblasdel wrote:

    For example, dividing 5 by 10 and press the percent key. The answer given est.1.

    The calculation you just described is 5 divided by 10% (e.g. 0.1). To complete the calculation, you must press the = button.

    http://www.percentagecalculator.co/percent-button.html

  • How can I calculate the amount of download and upload traffic within a single session?

    Hi, I would like to calculate how much the traffic of data (in bytes) that I use a session (time).
    Mind you, I speak not of connection speed.
    I guess I have sum download traffic to forward traffic, but I don't know where I can find it in my Firefox or my OS, and Linux.
    Can you help me?

    This is due to the use of a provider with a download bandwidth limits?

    There is an Extension Point called 'Net use'
    https://addons.Mozilla.org/firefox/addon/NET-usage-item/
    http://netusage.iau5.com/

  • Will the 'flights climbed' work and calculate the altitude of an aircraft?

    I'm going on vacation soon and everything I just want to know my iPhone 6s will calculate the flights climbed when the plane is in the Air?

    You will be on a plane with steps?

  • How the other drive app option to calculate calories? I did 45 minutes yoga with him and he showed the 260 callus which is high of 45 mins of yoga session.

    How the other drive app option to calculate calories? I did 45 minutes yoga with him and he showed the 260 callus which is high of 45 mins of yoga session.

    ISuspect that is not correct.

    Hello

    Saving workouts through the app to drive using others as the type of activity, active calories are estimated at a rate equivalent to a brisk walk or based on the data recorded by the heart rate sensor, according to what is higher.

    The following steps can help to improve the accuracy of the estimates made by your watch:

    • Estimates for calories and other results depend, in part, your personal information. To verify that it is accurate:
      • On your iPhone, in the application of the watch, go to: My Watch (tab) > health > Edit (top-right).
    • While training, to optimize the performance of the heart rate sensor (data from which is used when estimating calories), make sure you wear your watch fits on top of your wrist. Apple suggests that consider you the clamping Strip before starting a workout and it loosen again thereafter.
      • Note that the heart rate sensor is likely to give better results for the workouts that involve rhythmic (such as running) rather than the irregular movements.
    • Calibrate your watch can improve the accuracy of various estimates related to the activity, including estimates of calorie. To calibrate your watch, follow the instructions in the link below support article. You can reset your calibration data and start the process:
      • On your iPhone, in the application of the watch, go to: Watch My > privacy > Motion & Fitness > tap reset Calibration data.

    More information:

    Use of the workout on your Apple Watch - Apple Support

    Your heart rate. What it means, and where on Apple Watch you will find. -Apple Support

    Calibrate your Apple Watch for better accuracy of training and activity - Apple Support

  • use the contents of the cell to a cell reference of formula calculate

    In Apple "Numbers", in order to update a spreadsheet each time that the values are added, I first need to calculate the number of days between the date of first entry and last date, using the COUNTA() method. Gives me the line number of the last entry.  For this I "CONCATENATE" a column letter known to a cell reference.

    Using this cell reference, I would like to know how can I use the contents of the cell to update the information contained in the rest of the worksheet. Is this possible?

    Any help would be appreciated.

    Thanks in advance.

    I have a problem following exactly what you want to do, but think that INDIRECT can help.  More here.

    SG

  • How to calculate the hours between two dates by the numbers

    If I update 09:00 start time 17:00 end time of shift in C3 and B3, how to use a D3 formula to calculate the number of hours between the two?  Then I can just copy down the lines for nth years...

    It is a spreadsheet of the part-time staff payroll.

    I'm sure that a lot of people out there have done that.

    Help, please.

    Thank you.

    Eddie

    What program of worksheet that you are using? Since you have a newer iMac running El Capitan, I can safely assume that you use NOT AppleWorks, which is a Power PC application that can run on any OS newer than the snow leopard, OS X 10.6.8.

    If you use numbers, try to repost your question in numbers for Mac forum. If you use Microsoft Excel, try posting in the Microsoft forums. LibreOffice also has community support.

  • How to calculate the difference between two times by the NUMBERS

    I'm so bothered by the fact that I can't understand that.

    Cell B2 - 08:00

    Cell C2 - 10:50

    (How can cell D2 - I get this cell to calculate the difference and say 02:50?)

    I know it's probably one of the most basic operations, but for the life of me I can't understand it. The cells B2 and C2 are formatted for a 24-hour clock. But if I tell the system to just subtract the two, I get "0,118. Everything I find on the forum search goes beyond what I need. Can someone help me?

    Thank you

    Hi sapirs,

    Departure and arrival of the cells are in Date and time with Date format: no and time: 24-hour clock.

    Formula in D2 (fill down)

    = C2−B2

    The results become a duration format, but under automatic (numbers automatically worth this format)

    If you wish, you can change the cells of lasting results.

    What Data Format have your result cells?

    Kind regards

    Ian.

  • Spot calculate modulo of negative numbers incorrectly

    I'm a math major Bachelor's degree. Sometimes I use a projector to check my calculations. However, when calculating the modulo (%) negative numbers by using spotlight, the calculator returns inaccurate answers. I was wondering if anyone else has noticed this, or why it could be (apart from the bad coding)?  For example, it returns,

    -2 %3 =-2 and -1 = - 1 %3.

    However, if you were to Google "-2 %3 ', or calculate this in Wolfram Alpha, R, C, Python, etc. you see:

    -2 %3 = 1 and -1 %3 = 2.

    These are indeed the right answers like:

    -2 = 3*(-1) + 1et -1 = 3*(-1) + 2

    I submitted via the official channel on this subject, but I thought I'd post here to draw attention to the problem.  I hope Apple solves this problem for the large number of students who use their products is not misled.

    2011 Macbook Pro 13 ", OSX 10.11.3

    It depends on the definition of the % operator. You expect it to be an operator "rest". Spotlight uses the same library as Xcode which defines it as a true modulo operator.

    See here for the definition of the module: http://mathforum.org/library/drmath/view/52343.html

  • How to calculate pay many times a total number of hours

    Hi people,

    I'm using the last update of the numbers.

    I'm trying to find a way to calculate a sum.

    I got the total number of hours per week, but I want the formula to calculate the total number of hours per week by people price / hour?

    How can I do this?

    Any suggestions?

    I recommend having a look at the model of timetable for the employee to File > New.

    SG

  • The numbers will not calculate sum?

    Disconcerting symptom... working in file of numbers with four worksheets. One cannot calculate anything, all the rest are fine.

    I tried format cell data corresponding to the leaves 'automatic', 'number', 'currency' - three spreadsheets are fine, one can simply not compute anything.

    See chart - sum appears on one, is Virgin on the other.

    Hoping that the software isn't broken... what could cause this?

    Fixed... but always puzzled as to why.

    Everything just closed and reopened the document numbers work and things normally again.

Maybe you are looking for

  • Why my iPhone not charging?

    recently my iPhone 6 did not pay. I tried to clean the port, load, but I'm sure that there are still a few stuffed animals in there. in any case my phone is charging but anyway its losing battery. I even tough it was restarted because I thought that

  • SMS and call does not work after a long operating life

    I use the flame, stable channel, and after a few hours I do not receive calls or Sms I have to wake up the phone or restart. When it occurs, my ears calling the ring but my phone does not ring. I get text messages hours after that they sent to Bern.

  • External CD drive for T2130CT

    Hello Can you help, I have this laptop T2130CT old, he needs an d external drive to load windows 95, is a TEAC cd-224th compatible with mine, or which drive would be, thanksaga151

  • Satellite A30-130 Modem does not work - error 680 not tone

    I have a series of portable A30 - 130, recently, I've noticed that when I want to connect to the internet through dial-up connection my modem generates an error that says: error 680, no dial tone. I am quiet sure that there is a dial tone, and also,

  • SW5-271 switch 12 - functions of a mouse sometimes do not work.

    Hello Sometimes when I turn on the keyboard, the mouse functions do not work. I can't left or do a right-click and node pointer does not respond. Any ideas? Thank you!