Solved

SQL Group By

Posted on 2013-05-15
1
285 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
ID: 39169998
Nevermind...

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

ugh
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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 SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

776 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