Solved

SQL Group By

Posted on 2013-05-15
1
283 Views
Last Modified: 2013-05-15
Hi...

(Access 2010)

I'm trying to get values to group by a date, but it won't let me, please tell me what i'm missing?

SELECT DSPENT,  Fee1, Fee2
FROM qry13_1
GROUP BY DSpent

I want the data for both to be listed under the actual month (one line per month/year with the total)

Query13_1:

DSpent                        Fee1      Fee2
March 2013      $5.00      $0.00
March 2013      $5.00      $0.00
April 2013                        $0.00      $1.00
April 2013                         $5.00      $0.00

tnx
~j
0
Comment
Question by:prosit
1 Comment
 
LVL 2

Accepted Solution

by:
prosit earned 0 total points
Comment Utility
Nevermind...

SELECT DSPENT,  SUM(VantivFee) as VanFee, SUM(VantivReturnFee) as VanRetFee
FROM qry13_1
GROUP BY DSpent
ORDER BY DSpent

ugh
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now