
- •Context
- •Introduction
- •1 Creating and working with a database in ms access 2003
- •1.1 Introduction to Databases
- •1.2 Planning a Database
- •1.3 Starting Access and Opening a Database
- •1.4 Self-control test
- •2 Creating a table in ms access 2003
- •2.1 Theoretical material
- •2.2 Example of tables creation for database “Product realization of Holding company “Group nord”
- •2.3. Self-control test
- •3 Creating queries in ms access 2003
- •3.1 Theoretical material
- •3.2 Example of queries creation for database “Product realization of Holding company “Group nord”
- •3.3. Self-control test
- •4 Creating forms in ms access 2003
- •4.1 Theoretical material
- •4.2 Example of forms creation for database “Product realization of Holding company “Group nord”
- •4.3. Self-control test
- •5 Creating reports in ms access 2003
- •5.1 Theoretical material
- •5.2 Example of reports creation for database “Product realization of Holding company “Group nord”
- •5.3. Self-control test
- •Individual tasks
- •Variant 1
- •Information about passengers
- •Variant 2
- •Variant 3
- •Variant 4
- •Variant 5
- •Variant 6
- •Variant 7
- •Variant 8
- •Variant 9
- •Variant 10
- •Variant 11
- •Vehicles
- •Variant 12
- •Variant 13
- •Variant 14
- •Information about printing-house
- •Variant 15
- •Variant 16
- •Literature
Variant 5
Data base «Supply of medicines to pharmacies»
According the offered structure of the relational database build the necessary objects of it: tables, queries, forms and reports. Form a general report from the printed database objects and description of its implementation.
Create the tables:
Pharmacies
Pharmacy N |
Pharmacy name |
Head of pharmacy |
Address |
Phone |
Е-mail |
|
|
|
|
Input Mask |
|
Commodity Groups
Commodity group ID |
Commodity group |
|
|
Directory of products
Product ID |
Product name |
Commodity group ID |
Price |
|
|
Lookup column with a definition of row source |
Validation Rule |
Supply
ID |
Provider name |
Pharmacy N |
Product ID |
Date |
Purchase price |
Quantity |
|
ex., KRC Pharmacy Group |
Lookup column with a definition of row source |
Lookup column with a definition of row source |
Validation Rule, Input Mask |
Validation Rule |
Validation Rule |
Set up relations between tables and fill it with data.
Create the queries:
A select query with the next information: product name, commodity group, pharmacy name, provider name, date, purchase price, quantity, order value, profit.
A select query with information about products which quantity is more that 100 units with information: product name, commodity group, pharmacy name, provider name, purchase price, quantity, order value, profit.
An aggregate query that totals up the number of products units that was ordered by every pharmacy.
A parameter query that represents information about certain pharmacy (product name, commodity group, pharmacy name, provider name, date, purchase price, quantity, order value, profit).
An action query that will increase the product price by 7% (only for products form “KRC Pharmacy Group” provider).
On the basis of the first query create a new “Make Table” one.
A crosstab query of total profit by Pharmacies and Products.
Create the forms:
1. Create «List of pharmacies» form by using wizard on the basis of table «Pharmacies». With the help of it add 5 records to the table.
2. Create “Products” form in design view on the basis of table «Directory of products». With the help of it add 5 new records to the table.
3. A main form.
Create the reports:
1. Create «Orders» report by using wizard. Make a data grouping by Pharmacy # and Provider. The Group Footer and the Report Footer must contain the average and minimum value of profit.
2. Create report «Orders of the products more that 100» in design view. In the report group data by dates, in the middle by commodity group. The Group Footer and the Report Footer must contain the minimum and average purchase price.