A
Andre Adams
Ok. Let me try this again, this time, I'm going to try to be as clear as
possible. I am not familiar with SQL queries. I just don't understand the
language. I know that every query within access uses them, I just haven't
been trained in creating them. I have a table. It comprises all of my trade
data from 2004-2008 with the below fields.
Branch - Prefix to account Number
Acct # - Account trade is allocated to
Account Name - The client that the trade is allocated to
Symbol - The symbol that we bot or sold for the transaction
Description1 - The Description of the Symbol
Cusip - The Cusip for the Symbol
SettleDate - The date the transaction settled.
Tran - Whether the transaction was a buy or sell
Shrs/Contr - The amount of Shares purchase or sold
Trade Price - The price the trade was executed for
Commission Amount - The commission generated on the trade
Bltr - The execution indicator for the trade
Rep No - The rep associated witht the trade
Clearing Charge - The charge given to us from our clearing firm on the trade
Now. Given this information from 2004-2008, how would I pull (within the
same query) information relating commission for 3 date ranged periods. For
instance..I want to be able to pull:
1. Month to date total for 2008
2. Quarter to date total for 2008
3. Year to date total for 2008
Within this query, I want to be able to pull certain account numbers. I
have about 15 that I would put into the system to pull and nothing else.
I've tried to create queries for each of them (the 3 outlined above) and it
works fine for them individually. However, when I put them all in one query,
it omits certain lines and the totals are incorrect. Is there a way to do
this in access or do I need to look for a more manual way to produce this
information?
possible. I am not familiar with SQL queries. I just don't understand the
language. I know that every query within access uses them, I just haven't
been trained in creating them. I have a table. It comprises all of my trade
data from 2004-2008 with the below fields.
Branch - Prefix to account Number
Acct # - Account trade is allocated to
Account Name - The client that the trade is allocated to
Symbol - The symbol that we bot or sold for the transaction
Description1 - The Description of the Symbol
Cusip - The Cusip for the Symbol
SettleDate - The date the transaction settled.
Tran - Whether the transaction was a buy or sell
Shrs/Contr - The amount of Shares purchase or sold
Trade Price - The price the trade was executed for
Commission Amount - The commission generated on the trade
Bltr - The execution indicator for the trade
Rep No - The rep associated witht the trade
Clearing Charge - The charge given to us from our clearing firm on the trade
Now. Given this information from 2004-2008, how would I pull (within the
same query) information relating commission for 3 date ranged periods. For
instance..I want to be able to pull:
1. Month to date total for 2008
2. Quarter to date total for 2008
3. Year to date total for 2008
Within this query, I want to be able to pull certain account numbers. I
have about 15 that I would put into the system to pull and nothing else.
I've tried to create queries for each of them (the 3 outlined above) and it
works fine for them individually. However, when I put them all in one query,
it omits certain lines and the totals are incorrect. Is there a way to do
this in access or do I need to look for a more manual way to produce this
information?