In this table is a variety of columns holding data in columns:
Orders_Food_Order_1
Orders_Food_Qty_1
Orders_Food_Order_2
Orders_Food_Qty_2
Orders_Drink_Order_1
Orders_Drink_Qty_1
Orders_Drink_Order_2
Orders_Drink_Qty_2
The Food_Order and Drink_Order fields are text and hold different food and drink orders from different customers and may hold the same data in different columns
eg for Food
Order 1 Qty 1 Order 2 Qty 2 Order 1 Qty 1 Order 2 Qty 2
Customer 1: HotDog 1 Fries 2 Shake 1 Coke 1
Customer 2: Fries 2 Burger 2
Customer 3: OnionRings 1 HotDog 1 Coke 1
Customer 4: Burger 2 OnionRings 1
What I would like to be able to do is aggregate this data so that I can perform calculations on that data - specifically how many orders for each type of food?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
alanhoffman
Hi there Caspio gurus...
I have a table: Orders..
In this table is a variety of columns holding data in columns:
Orders_Food_Order_1
Orders_Food_Qty_1
Orders_Food_Order_2
Orders_Food_Qty_2
Orders_Drink_Order_1
Orders_Drink_Qty_1
Orders_Drink_Order_2
Orders_Drink_Qty_2
The Food_Order and Drink_Order fields are text and hold different food and drink orders from different customers and may hold the same data in different columns
eg for Food
Order 1 Qty 1 Order 2 Qty 2 Order 1 Qty 1 Order 2 Qty 2
Customer 1: HotDog 1 Fries 2 Shake 1 Coke 1
Customer 2: Fries 2 Burger 2
Customer 3: OnionRings 1 HotDog 1 Coke 1
Customer 4: Burger 2 OnionRings 1
What I would like to be able to do is aggregate this data so that I can perform calculations on that data - specifically how many orders for each type of food?
ie
Burger: 4
Fries: 4
HotDog: 2
OnionRings: 2
Shake: 1
Coke: 2
Any assistance would be greatly appreciated..
Cheers..
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.