I have 3 tables (Invoice, customer, NationalAcct)that are linked together.Some customers are NationalAcct with parent & child relationship and some do not have it. Basically, every Invoice has a customer# that ties to the Customer table and the Customer table will have NationalAcct# if is a National Account, if not it will be Null and the NationalAcct table will determine if this customer# is a Parent or a child.
I am trying to subtotal the SalesAmt field with the National Accts(parent cnad child) and non National Acct with Group by the Customer# and not showing the NationalAcct child Customer# but just the NationalAcct parent Customer#. Please advise.Thanks.
invoice.cust# --- customer.customer#,customer.NationalAcct#-----NationalAcct.NationalAcct#
I am trying to subtotal the SalesAmt field with the National Accts(parent cnad child) and non National Acct with Group by the Customer# and not showing the NationalAcct child Customer# but just the NationalAcct parent Customer#. Please advise.Thanks.
invoice.cust# --- customer.customer#,customer.NationalAcct#-----NationalAcct.NationalAcct#