How add a number in sum in the query...

herbertioz

Registered User.
Local time
Today, 12:01
Joined
Nov 6, 2009
Messages
66
I need some help on this.

I have a Sql here:

Code:
SELECT DISTINCTROW trades.ID, Sum(trades.AntallPips) AS [Sum Av AntallPips]
FROM trades
GROUP BY trades.ID;

The idea is to have a start number like 10000 and using the sum to sum antallpips. For example like this:

10000+The first number=Calc 1
Calc 1+ The second number= Calc 2
and so on....

Can someone help?:) Thanks in advance
 
Try;
Code:
SELECT DISTINCTROW trades.ID, Sum(trades.AntallPips) + 1000 AS Expr1
FROM trades
GROUP BY trades.ID;
 
Try;
Code:
SELECT DISTINCTROW trades.ID, Sum(trades.AntallPips) + 1000 AS Expr1
FROM trades
GROUP BY trades.ID;

Ive tried that also, but it gives me wrong calculations. Any suggestions?
 
I'm not sure I've grasped what you are after, could you perhaps provide sample of what you are looking to achieve?
 
I'm not sure I've grasped what you are after, could you perhaps provide sample of what you are looking to achieve?

Ok, see the example in Excel as a picture. Thats all I want:)
 

Attachments

  • ACCESS.jpg
    ACCESS.jpg
    70 KB · Views: 98

Users who are viewing this thread

Back
Top Bottom