SQL Query and Summary

  • Thread starter Thread starter Soniya
  • Start date Start date
S

Soniya

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top