Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

mrali7
2012-03-12 06:21:49

Hi shong,
Thanks for your reply ,
actually because i need to make the following :-

Column1          Column2            Column3      Column4
Ah                         MC                    2                3
Ah                         MD                    1                3
Am                        MC                    1                1

as you suggested it will solve the problem but the reason that i don't want to Group with column2 is i want to add another column like column4 to count All Grouped by column1 only
so the final result will be
Column3 --> Total Count Grouped by Column1 and Column2
Column4 --> Total Count Grouped by Column1 Only

i hope that my explaination is clear.

Best Regards
Ali

shong
2012-03-12 02:21:41

Hi
Why don't you group by column1 and column2? It could get the desired result.

Best regards
shong

mrali7
2012-03-11 15:40:55

Hi ,
i want to make an Conditional Aggregation like the following example :-

Column1          Column2            Column3
Ah                         MC                    150
Ah                         MC                    130
Am                        MC                    100
Ah                         MD                     55


All i want to do i want to Group by Column1 and Count Column3 if the Column2='MC'
so i need final result like the following


Column1          Column2            Column3
Ah                         MC                    2
Ah                         MD                    1
Am                        MC                    1

hope that my explaination is clear

Thanks
Ali

Board footer

Powered by FluxBB