
- •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
Information about printing-house
PH_ID |
PH_Name |
PH_Address |
PH_Phone |
|
|
|
Input Mask |
Orders
Order_ID |
Customer_ID |
Kind_of_ printed_ material |
Quantity |
Price |
PH_ID |
Date |
Mark of the execution |
|
Lookup column with a definition of row source |
|
Validation Rule |
Validation Rule |
Lookup column with a definition of row source |
Validation Rule, Input Mask |
Value: yes/no |
Set up relations between tables and fill it with data.
Create the queries:
A select query with the next information: Date, Customer_ID, Kind_of_printed_material, PH_Name, Cost, Mark of the execution.
A select query with information (Date, Customer_ID, Kind_of_printed_material, PH_Name, Cost, Mark of the execution) about orders in the current month.
An aggregate query that totals up the cost of orders by each Kind_of_printed_material.
A parameter query that represents information (Date, Customer_ID, PH_Name, Cost, Mark of the execution) by certain Kind_of_printed_material.
An action query that in the table “Orders” will delete all records with information about customers from Gorlovka.
On the basis of the second query create a new “Make Table” one.
A crosstab query of total quantity for printed materials by Customers and Kind_of_printed_materials.
Create the forms:
1. Create «List of Customers» form by using wizard on the basis of table «Customers». With the help of it add 5 records to the table.
2. Create “Catalog of printing-house” form in design view on the basis of table «Information about printing-house». 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 Kind_of_printed_material and PH_Name. The group Footer and the report Footer must include the total cost.
2. Create report «Orders in the current month» in design view. In the report group data by Kind_of_printed_material, in the middle by Dates. The group Footer and the report Footer must contain the average and maximum Cost.
Variant 15
Data base «Hotel Complex»
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:
Restaurant halls
Hall_ID |
Hall_Name |
Characteristics |
Number of tables |
Entertainment |
|
Value:bar, green hall, summer terrace, … |
|
|
Value: dance floor, karaoke, billiards, hookah |
Service staff
Staff_ID |
Staff_Name |
Address |
Phone |
Hire_Date |
Salary |
|
|
|
Input Mask |
Validation Rule, Input Mask |
Validation Rule |
Menu
Food_ID |
Food_Item |
Description |
Type |
Price |
Weight |
|
|
|
Value: |
Validation Rule |
Validation Rule |
Service
Service_ID |
Hall_ID |
Staff_ID |
Number of table |
Date |
|
Lookup column with a definition of row source |
Lookup column with a definition of row source |
|
Validation Rule, Input Mask |
Orders of food
ID |
Service_ID |
Food_ID |
Quantity |
|
Lookup column with a definition of row source |
Lookup column with a definition of row source |
Validation Rule |
Set up relations between tables and fill it with data.
Create the queries:
A select query with the next information: Date, Staff_Name, Hall_Name, Food_Item, Number of table, Quantity, Cost.
A select query with information (Date, Staff_Name, Hall_Name, Food_Item, Number of table, Quantity, Cost) about orders in the current month.
An aggregate query that totals up the number of clients by dates.
A parameter query that represents information about staff work (Date, Staff_Name, Food_Item, Number of table, Quantity, Cost) in the certain hall.
An action query that in the table “Service staff” will increase value of Salary by 21%.
On the basis of the second query create a new “Make Table” one.
A crosstab query of total cost by Staff_Name and Hall_Name.
Create the forms:
1. Create «List of service staff» form by using wizard on the basis of table «Service staff». With the help of it add 5 records to the table.
2. Create “Restaurant Menu” form in design view on the basis of table «Menu». With the help of it add 5 new records to the table.
3. A main form.
Create the reports:
1. Create «Service» report by using wizard. Make a data grouping by Dates and Hall_Names. The group Footer and the report Footer must include the minimum of order cost.
2. Create report «Orders of the current month» in design view. In the report group data by Hall_Names, in the middle by Staff_Names. The group Footer and the report Footer must contain the average and maximum Cost.