D
diaExcel
I have three tables in Access: "wholesale", "profi", and "min_value".
The "wholesale" table has this structure:
code (string)-primary key
type (string)-primary key
start_date(date)-primary key
end_date (date)-primary key
total_charge (double)
total_duration (double)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
the "profi" table has:
code (string)-primary key
type (string)-primary key
company_name (string)-primary key
nationality (string)-primary key
month (string)-primary key
year (string)-primary key
retail_charge (double)
retail_duration (double)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
and the "min_value" has:
company_name (string)-primary key
code (string)-primary key
type (string)-primary key
value(double)
and with those tables I have to create a stored procedure in access to
calculate sum(total_charge), sum(total_duration), sum(retail_charge),
sum(retail_duration), with the next parameters: code, company_name, type,
start_date, end_date, month, year.
Thank you.
The "wholesale" table has this structure:
code (string)-primary key
type (string)-primary key
start_date(date)-primary key
end_date (date)-primary key
total_charge (double)
total_duration (double)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
the "profi" table has:
code (string)-primary key
type (string)-primary key
company_name (string)-primary key
nationality (string)-primary key
month (string)-primary key
year (string)-primary key
retail_charge (double)
retail_duration (double)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
and the "min_value" has:
company_name (string)-primary key
code (string)-primary key
type (string)-primary key
value(double)
and with those tables I have to create a stored procedure in access to
calculate sum(total_charge), sum(total_duration), sum(retail_charge),
sum(retail_duration), with the next parameters: code, company_name, type,
start_date, end_date, month, year.
Thank you.