Solved

SQL Group By

Posted on 2013-05-15
1
284 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

911 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

15 Experts available now in Live!

Get 1:1 Help Now