Jump to content

Recommended Posts

First off, thank you to anyone who can help me.

 

In access i have a table with data which is attachment 1111.jpeg. The sql code to get that table is:

---------------------------------------

SELECT DISTINCT

 

SL2.ROLLUP_LEVEL_2_CD,

SL2.DIST_CAT_NUM,

Phoenix_With_Level_2_Level_3.May,

Phoenix_With_Level_2_Level_3.Jun,

Phoenix_With_Level_2_Level_3.Jul,

Phoenix_With_Level_2_Level_3.Aug,

Phoenix_With_Level_2_Level_3.Sep,

Phoenix_With_Level_2_Level_3.Oct,

Phoenix_With_Level_2_Level_3.Nov,

Phoenix_With_Level_2_Level_3.Dec,

Phoenix_With_Level_2_Level_3.Jan,

Phoenix_With_Level_2_Level_3.Feb,

Phoenix_With_Level_2_Level_3.Mar,

Phoenix_With_Level_2_Level_3.Apr

 

FROM Phoenix_With_Level_2_Level_3 LEFT JOIN SL2 ON Phoenix_With_Level_2_Level_3.ROLLUP_LEVEL_2_CD = SL2.ROLLUP_LEVEL_2_CD

 

WHERE (((SL2.VAL_DESC)='T'));

------------------------------------------

 

What i would like is to have the monthly data summed and organized by DIST_CAT_NUM and grouped by ROLLUP_LEVEL_2_CD (a result like 2222.jpeg attachment). I can do ALOT of work in excel but I know there is an easier way.

 

Can anyone help me and write a sql command to acheive the end result?

 

Im stumped and anything asap would be awesome!

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/108866-sql-in-ms-access-can-you-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.