Re: Big question - Average of my account per month.
From: Pedrito Portugal (Portugal_at_discussions.microsoft.com)
Date: 09/30/04
- Next message: Al Tenhundfeld: "Re: @@rowcount"
- Previous message: Toby Herring: "Re: sqlserver and access"
- In reply to: Aaron [SQL Server MVP]: "Re: Big question - Average of my account per month."
- Next in thread: Pedrito Portugal: "Re: Big question - Average of my account per month."
- Reply: Pedrito Portugal: "Re: Big question - Average of my account per month."
- Reply: Aaron [SQL Server MVP]: "Re: Big question - Average of my account per month."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Sep 2004 07:15:02 -0700
This a new question.... I have inserted new 2 lines to ask you How I do if I
have more than one movement per day?
I have this table from the BANK:
DATE DEBIT AMOUNT CREDIT AMOUNT AVERAGE
2004-08-01 0 1000 1000
2004-08-05 0 500 500
2004-08-05 0 50 550
2004-08-05 0 50 600
2004-08-10 0 750 750
2004-08-15 -200 0 -200
2004-08-20 0 2000 2000
2004-08-25 0 1500 1500
Your first answer is ok if I dont have repeated days, but If I have more
than one movement fails... because i need to calculate the amount per day to
calculate the average per month. So, the amount of 2004-08-05 is 600, because
is the amount referenciated to that day.. do you agree?
Thanks a lot my friend!!!
"Aaron [SQL Server MVP]" wrote:
> > For the goal I dont need the follow lines:
> > 2004-08-05 500
> > 2004-08-05 550 ---> credit of 50
> > Only interest the last movement of the day.
>
> I'm extremely confused. With this data, how do you know which one was the
> last movement of the day?
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
- Next message: Al Tenhundfeld: "Re: @@rowcount"
- Previous message: Toby Herring: "Re: sqlserver and access"
- In reply to: Aaron [SQL Server MVP]: "Re: Big question - Average of my account per month."
- Next in thread: Pedrito Portugal: "Re: Big question - Average of my account per month."
- Reply: Pedrito Portugal: "Re: Big question - Average of my account per month."
- Reply: Aaron [SQL Server MVP]: "Re: Big question - Average of my account per month."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|