0% found this document useful (0 votes)
23 views2 pages

Fieldnam e Data Type Action: - Dsiap-S3 2012/2013

The document provides instructions for various tasks involving queries and tables in a database. It includes: 1) Creating a filter query with at least 2 criteria to filter records in a table. 2) Creating select queries to show customer and item data sorted by name, between a range of units sold, staff data with a calculated years worked field, and customers that pay other than cash. 3) Creating make table queries to calculate amounts from unit prices and sums of amounts grouped by customer and staff, and update queries to populate fields. 4) Calculating commission as a percentage of amounts by staff and salary as basic salary plus allowance plus commission minus a percentage. 5) Printing datasheets for the resulting tables and

Uploaded by

Butang Raihan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Fieldnam e Data Type Action: - Dsiap-S3 2012/2013

The document provides instructions for various tasks involving queries and tables in a database. It includes: 1) Creating a filter query with at least 2 criteria to filter records in a table. 2) Creating select queries to show customer and item data sorted by name, between a range of units sold, staff data with a calculated years worked field, and customers that pay other than cash. 3) Creating make table queries to calculate amounts from unit prices and sums of amounts grouped by customer and staff, and update queries to populate fields. 4) Calculating commission as a percentage of amounts by staff and salary as basic salary plus allowance plus commission minus a percentage. 5) Printing datasheets for the resulting tables and

Uploaded by

Butang Raihan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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-

You might also like