Grouping

Majed

New member
Local time
Today, 12:06
Joined
Jul 4, 2005
Messages
6
Hi to all;
I have one code of 6 digits; each digit refer to a group; first 2= product group; beverage; live animals,….itc (24 product groups), the 3ed digits= food product, the 4th-6th digit= detail product group; vegetables, fruits,….,the rest of digits refers to product name, carrot, apple,…itc , example 070511
How can I use the query to sum the product value at different group level; example the first 2= product group, ..?
Do I have to split my code to 6 cods to do my calculation?
Thank in advance for help
majed
 
Group by Left(code,6) for that level
 
Last edited:

Users who are viewing this thread

Back
Top Bottom