Newbies abot Posted October 26, 2006 Newbies Posted October 26, 2006 I'm very new to databse design and I need some help with a calculation that i'm working on i have 4 tables. customer, product, line item, and category The line item table is connected to the product, customer tables and the product table is connected to the category table and contains the pricing information i can get the sum of all the purchases made by a single customer but i am not sure how to get the sum of the purchases in a single category for each customer. any help on this is greatly appreciated thanks
jteich Posted October 27, 2006 Posted October 27, 2006 (edited) You need a relationship like above. Create a global field to choose the category that is to be displayed. -jens Edited October 27, 2006 by Guest
Newbies abot Posted November 1, 2006 Author Newbies Posted November 1, 2006 Hi. thanks for your help but i'm afraid i still don't understand how to set this up. I've read through several topics on global fields but i am not sure where to place certain items. i want to select the category within the service table so it can be repeatedly used without having to select the category time and again. I want the service to be selected in the line item which also selects the customer id to create the relationship. I dont understand what the global field should be and which fields it should be related to. and finally, how can i create an equation to calculate the sum of the line items of each category for an individual patient between a start date and end date. this is what my er diagram is so far thanks again
Recommended Posts
This topic is 6658 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now