Vous êtes sur la page 1sur 2

Assignment 2 IFM1414 Sem 2 2012/2013 1. Table Staff Staff Staff Custom er Custom er 2.

. Add these fields and print the table datasheet. Fieldnam e Commissio n Salary AmtByStaf f Cash AmtByCus t Data type Number Currency Number (single) Yes/No Number (single) Action Leave blank Leave blank Leave blank Have some records pay by cash and some not Leave blank

Create 1 filter by form using at least 2 criteria. Print the filtered records.

For questions 3 - 5, print ONLY the query Design view for each task you do. Make sure to show all formulas. 3. Create select queries to:

a. show the customer membership no, names, item no and unit sold of any 2 types of items, sorted alphabetically by customers name b. show the customer membership no, names, item no and unit sold for only unit sold between n to m (where n and m are number of items sold), AND for only one type of product. c. show staff ids, staff names, date hired, and a calculated field named YearsWorked. ***YearsWorked = the total of years the staff has been working in the company Format YearsWorked to fixed, 1 decimal place. d. show all customers membership numbers and names that will pay by other than cash. 4. Using make table queries, create 3 tables as follows:

a. select customer membership no, staff no, item no, unit sold, price per unit and a calculated field called Amount, where : Amount = number of unit sold X unit price. Format Amount to Currency, 2 decimal b. use the table created in (a) to create these queries: (i) group by customer membership numbers, and sum the Amount. Save as ByMember. (ii) group by staff id number, and sum the Amount. Save as ByStaff. Use update query to update Customer table, AmtByStaff to SumOfAmount created in 4b)i). Staff table, AmtByCust to SumOfAmount created in 4a)ii).

5. a) b)

-dsiap-S3 2012/2013-

c)

Staff table, the Commission as follows: Commission = AmtByStaff X Rate for Commission d) Staff table, the Salary as follows: Salary=(BasicSalary + Allowance + Commission) 5% X (BasicSalary + Allowance + Commission) 6. Print the datasheet for tables: ByMember, ByStaff, Staff and Customer

-dsiap-S3 2012/2013-

Vous aimerez peut-être aussi