A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

HOW DO I GROUP BY A TEXT FIELD AND SUM THE AMT..



 
 
Thread Tools Display Modes
  #1  
Old March 28th, 2005, 09:13 PM
aaae36
external usenet poster
 
Posts: n/a
Default HOW DO I GROUP BY A TEXT FIELD AND SUM THE AMT..

HOW DO I GROUP BY A TEXT FIELD AND SUM THE AMT..
  #2  
Old March 28th, 2005, 09:19 PM
MGFoster
external usenet poster
 
Posts: n/a
Default

aaae36 wrote:
HOW DO I GROUP BY A TEXT FIELD AND SUM THE AMT..


select text_column, sum(amount) as amt
from table
group by text_column

--
MGFoster:::mgf00 at earthlink decimal-point net
Oakland, CA (USA)
  #3  
Old April 6th, 2005, 01:59 PM
aaae36
external usenet poster
 
Posts: n/a
Default

Hi there.. I am wanting to group by a text column that will contain more than
entry.. other fields will be different. and then my table contains an amount
field.. I am needing to sum the amount field that has the same text in
another column.... thank you and your help is greatly appreciated..


"MGFoster" wrote:

aaae36 wrote:
HOW DO I GROUP BY A TEXT FIELD AND SUM THE AMT..


select text_column, sum(amount) as amt
from table
group by text_column

--
MGFoster:::mgf00 at earthlink decimal-point net
Oakland, CA (USA)

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.