Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default SQL Query and Summary

Hi All,

Is it possible to make a summary at the same time of an
SQL query?

For eg. if I have various branches Detailed data in a
Table, can I have a Query to get only the Total for each
column for each Branch?

I can be more specific incase this is possible

TIA

Soniya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default SQL Query and Summary

Hi Soniya

Its done in SQL Like this:

SELECT PRODUCT, REGION, SUM(AMOUNT)
FROM SALES
GROUP BY PRODUCT, REGION
ORDER BY REGION

HTH. Best wishes Harald

"Soniya" skrev i melding
...
Hi All,

Is it possible to make a summary at the same time of an
SQL query?

For eg. if I have various branches Detailed data in a
Table, can I have a Query to get only the Total for each
column for each Branch?

I can be more specific incase this is possible

TIA

Soniya



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 2 November 7th 05 03:30 PM
multi group with summary above with 1 overall summary line below Freddy Excel Discussion (Misc queries) 1 November 1st 05 08:50 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 11:25 AM.

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

About Us

"It's about Microsoft Excel"