S
schenell
i have two tables (customer & Inv_Sales). The inv_sales table contains the
transaction type (trans_type), total net amt (tot_net_amt) and transaction
date (trans_date).
my two transaction types are DI and CM. in my report i need to generate a
customer list based on the sales for a period. i have the user entering the
beginning and end date for the period.
this is my code thus far:
PARAMETERS [Enter start date:] DateTime, [Enter end date:] DateTime;
SELECT DISTINCT customer.cust_num, customer.cust_name, inv_sales.trans_date,
inv_sales.trans_type, inv_sales.tot_net_amt
FROM customer, inv_sales
WHERE (((inv_sales.trans_date) Between [enter start date:] And [enter end
date:]));
i'm stuck from this point on. I want to get the sum of my DI and CM
trans_type for each cust_num and only have the cust_num, cust_name,
trans_date and sum(tot_net_amt) for each cust_num.
Any help would be appreciated.
transaction type (trans_type), total net amt (tot_net_amt) and transaction
date (trans_date).
my two transaction types are DI and CM. in my report i need to generate a
customer list based on the sales for a period. i have the user entering the
beginning and end date for the period.
this is my code thus far:
PARAMETERS [Enter start date:] DateTime, [Enter end date:] DateTime;
SELECT DISTINCT customer.cust_num, customer.cust_name, inv_sales.trans_date,
inv_sales.trans_type, inv_sales.tot_net_amt
FROM customer, inv_sales
WHERE (((inv_sales.trans_date) Between [enter start date:] And [enter end
date:]));
i'm stuck from this point on. I want to get the sum of my DI and CM
trans_type for each cust_num and only have the cust_num, cust_name,
trans_date and sum(tot_net_amt) for each cust_num.
Any help would be appreciated.