Solved

SQL Group By

Posted on 2013-05-15
1
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

707 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