Moldova State University: Study Case
Moldova State University: Study Case
Individual Work
STUDY CASE
Subject: Farmacie
Chiinu 2017
Contents
2. Creating queries :
a) 1 Select type query, which does not contain the Total row, but contains calculated fields and
the selection criteria... 8
b) 1 Select type query, which includes the Total row, calculated fields, selection criteria and are
grouped by a single field .9
c) 1 Select type query that includes the Total row, calculated fields, the selection criteria and are
grouped by multiple fields.10
d) 1 parameter query;..11
4. Creating reports
5. Creating forms
2
Create a Database with multiple tables
a) The description of databases field of application
An Access Database is a collection of data and objects related to a particular subject, which
is organized and categorized by tables.
A relational database is a simple, flexible and powerful type of database, which allows
an easy design of the data structures. It consists of two main components: tables and
relationships. The relations between two tables are on-way, so that one table becomes primary
and the others become secondary. This type of database was developed by Ted Codd in 1970.
A database management system (DBMS) represents a set of programs that lets you create,
update,edit and administerdata in database files.I also allows you to store and retrieve data from
those database files. Data in a database can be added, deleted, changed, sorted and searched all
using a DBSM.The purpose of a DBSM is to transform data into information, the information into
knowledge and the knowledge into actions.
I will start creating the database, by describing its field of applicaion. To create a database for
a flowershop, it is necessary to keep a record of the merchandise, the suppliers, the employees
and the sales. With the help of the Flowershop Database, we can easily obtain reports which
contain information about the flowers sold on a certain date and other similar useful data.
Objective: Obtaining fast and easily, information about flower sales, regarding different criteria.
3
b) Creating the tables for the Flowershop database
4
Datasheet:
Table : Suppliers
Design:
Datasheet:
5
1) Table: Employees
Design:
Datasheet:
4) Table: Evidence
Design:
6
Datasheet:
e) 1 Select type query, which does not contain the Total row, but contains calculated fields and
the selection criteria... 8
f) 1 Select type query, which includes the Total row, calculated fields, selection criteria and are
grouped by a single field .9
g) 1 Select type query that includes the Total row, calculated fields, the selection criteria and are
grouped by multiple fields.10
h) 1 parameter query;..11
7
2. Creating queries
Objecive:
We will be be formulating statements (tasks) and we will be creating selection queries and
parameter queries, which will help us extract the necessary data from the Database with multiple
tables and solve various problems.
1 Select type query, which does not contain the Total row, but contains calculated fields and the
selection criteria
-Create a query that links the Name and the Price in a single field for Poinsettia
-Create a query that shows the employee list that have the salary greater than 3500 lei.
1 Select type query, which includes the Total row, calculated fields, selection criteria and are
grouped by a single field
-Create a query that shows the number of employees for each salary between 3000 and
4000(including)
-Create a query that shows the number of sales for each day during 11.10.2016-17.10.2016
1 Select type query that includes the Total row, calculated fields, the selection criteria and are
grouped by multiple fields
-Create a query that shows the Name and the Quantity sold with the Description: 50-60 cm
-Create a query that shows the Flower Code and the Quantity sold on 11.10.2016
1 parameter query
-Create a query that shows the flower list that have been sold on a certain date
-Create a query that shows the quantity sold on a certain date
8
-Create a query that links the Name and the Price in a single field for Poinsettia
-Create a query that shows the employee list that have the salary greater than 3500 lei.
Design:
Datasheet:
a)2)Design:
9
Datasheet:
-Create a query that shows the number of employees for each salary between 3000 and
4000(including)
-Create a query that shows the number of sales for each day during 11.10.2016-17.10.2016
Design:
10
Datasheet:
Design:
11
Datasheet:
-Create a query that shows the Name and the Quantity sold with the Description: 50-60 cm
-Create a query that shows the Flower Code and the Quantity sold on 11.10.2016
12
Design:
Datasheet:
Design:
13
Datasheet:
-Create a query that shows the flower list that have been sold on a certain date
-Create a query that shows the quantity sold on a certain date
Design:
14
Datasheet:
Design:
15
Datasheet:
16
1. Creating Action Queries
Objective: To formulate statements( tasks) and create action queries to copy, delete and uptade
data and create new tables in the Database with multiple tables.
- Create a Make-Table type query which contains all the information about suppliers
1) Create a new selection query and we will add all the fields from the Suppliers table
17
4) Save the query named create_table_suppliers 2
b) -Create a query which will add new information linked to the new variety of flowers
18
1) Create a table Flowers 2, which contains information about the new merchandise.
Design:
Datasheet:
2) Create a query based on the Flowers 2 tables and select all the fields
19
6) Press Run to open the query
7) View the result by opening the table Flowers
For this type of query we must check the parameter Cascade update related fields between
the Emplyees and Evidence tables.
-After the efficient sales, the employees salary has grown with 150 lei.Update the information.
20
5) Complete the Update to field with [Salary]+150
Create a query which will help delete the information about Trandafir and Garoafa from the
Flowers table
21
6) Press Run and accept all the requirements
7) View the results by opening the table Flowers
22
4. Proiectarea rapoartelor.
The report in an efficient instrument for showing the stored information from
the database through imprimare
-Create a report based on the table Employees.Calculate the total sum of the salaries
Design:
Datasheet:
23
24
b)
Design :
Datasheet:
25
26
5. Proiecatrea a cinci formulare:
Formularul este un ansamblu de zone active alctuit din mai multe tipuri de elemente: controale
asociate, controale neasociate etc. ce permit utilizatorilor s introduc efectiv informaii.
Prin intermediul formularelor, un utilizator al unei baze de date MS Access poate simplifica
procesul de introducere a datelor, ofer un format uor de utilizat pentru lucrul de date i se pot
aduga elemente funcionale. Datele vor fi prezentate ntr-o manier organizat i atractiv.
Mediul Access pune la dispoziie urmtoarele moduri de afiare a formularelor:
1. Design View (Proiectare)
2. Auto Form (Formular).
Formularea enunurilor i proiectarea unei interfee simple de ghidare a aciunilor pentru
exploatararea BD relaionale magazinului de flori.
a) Formularul-tabele, care reprezint formularul ce conine attea butoane, cte tabele are
BD.
b) Formularul-interogri, destinat pentru deschiderea a patru interogri;
c) Formularul-rapoarte, destinat pentru a deschide cele doua rapoarte;
d) Formularul ce va conine un formular ncuibat;
e) Formularul de baz care s conin butoane de deschidere a formularelor create mai
sus.Formular-Meniu.
a) Formularul-tabele;
Design:
27
Datasheet:
b) Formularul-interogri;
Design:
28
Datasheet:
c) Formularul-rapoarte;
Design:
29
Datasheet:
30
d) Formular ncuibat;
Design:
Datasheet:
31
e) Formular-Meniu;
Design:
32
Datasheet:
33
34