0% found this document useful (0 votes)
65 views

Moldova State University: Study Case

This document describes the creation of a database for a flowershop using Microsoft Access. It includes: 1. Creating multiple tables to store data on flowers, suppliers, employees, and sales evidence with identifying fields and descriptive fields. The tables are connected through relationships. 2. Creating several types of queries to extract and analyze data from the tables according to different criteria. This includes select, make-table, append, update, and delete queries with parameters. 3. Creating reports from the query results to summarize totals, groups, and other analyses of sales data. 4. Designing forms to easily view, enter and modify data in the tables, queries and reports. Menu and subforms are included.

Uploaded by

Pashutza Malai
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Moldova State University: Study Case

This document describes the creation of a database for a flowershop using Microsoft Access. It includes: 1. Creating multiple tables to store data on flowers, suppliers, employees, and sales evidence with identifying fields and descriptive fields. The tables are connected through relationships. 2. Creating several types of queries to extract and analyze data from the tables according to different criteria. This includes select, make-table, append, update, and delete queries with parameters. 3. Creating reports from the query results to summarize totals, groups, and other analyses of sales data. 4. Designing forms to easily view, enter and modify data in the tables, queries and reports. Menu and subforms are included.

Uploaded by

Pashutza Malai
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 34

Moldova State University

Faculty of Economic Sciences


Department of Accounting and Economic Informatics
Malai Parascovia

Individual Work

Information and communication technology

STUDY CASE

Subject: Farmacie

Scientific Advisor: Gavrila Natalia, lect. univ.


Author: Malai Parascovia, FB1602A

Chiinu 2017
Contents

1. Create a Database with multiple tables :

a) The description of databases field of application3


b) Creating the tables for the Flowershop database...4
1. Connecting the tables through relationships.....4
2. Using Design and Datasheet to create tables.5

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

3. Creating Action Queries

a) 1 Make-Table type query;.12


b) 1 Append type query;....14
c) 1 Update type query;.15
d) 1 Delete type query....16

4. Creating reports

a) A report containing totals.18


b) A report containing totals and data groups ..20

5. Creating forms

a) A Table-Form, which contains as many buttons as tables in the whole database..21


b) A Query-Form, meant to open other 4 queries...22
c) A Report-Form,meant to open the other 2 reports;..23
d) A Form, which contains a subform;...25
e) A Menu-Form, which contains buttons that can open the forms created above27

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.

The main elements of the Flowershop Database are:


Flowers Code_flower , Name, Description, Price (lei) , Code_supplier ;
Suppliers Code_supplier , Name, Country , Phone;
Employees Code_employee , Name , Surname, Address, Phone , Salary;
Evidence Code_sales , Code_flower , Code_employee, Code_supplier , Quantity , Date;

3
b) Creating the tables for the Flowershop database

1. Connecting the tables through relationships


When creating a database with multiple tables, Microsoft Access allows you to connect tables
through relationships, choose the type of association and ensure the referential integrity of the data.
(Tools Menu -> Relationships)

This is the obtained result:

The type of relationship used:

1:M (One to many) for the tables Employees-Evidence, Evidence-Suppliers, Evidence-Flowers,


Suppliers-Flowers. This type of relationship is characterized by the fact that one record in the
primary table can be linked to many records from a related table.In our case, we are referring to
the fields : Code_employee, Code_sale, Code_supplier, Code_flower.

2. Using Design and Datasheet to create tables


Table: Flowers
Design:

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.

a) 1 Make-Table type query;


- Create a Make-Table type query which contains all the information about suppliers

b) 1 Append type query;


-Create a query which will add new information linked to the new variety of flowers

c) 1 Update type query;


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.

d) 1 Delete type query.


- Create a query which will help delete the information about Trandafir and Garoafa
from the Flowers table

- 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

2) Choose the query type : Make-Table

3) We name the table Suppliers 2

17
4) Save the query named create_table_suppliers 2

5) Open the query through a double-click


6) Press Yes for all the dialog box requirements

7) View the result by opening the new 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

3) Choose the query type Append-Querry


4) Select from the drop down list the name of the table to which we will be adding the information- Flowers

5) Save the query and name it add_data_to_table_flowers

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.

1) Create a query based on the table Employees

2) Select the field Salary


3) Choose the query type Update
4) The Update to field appears

20
5) Complete the Update to field with [Salary]+150

6) Press Run and accept the programs requirements


7) View the result by opening the Employees table

Create a query which will help delete the information about Trandafir and Garoafa from the
Flowers table

1) Create a query based on the table Flowers


2) Select the field Name
3) Chooose the query type Delete Query

4) In the new appeared filed, pick In


5) Criterium Trandafir or Garoafa

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

a) Creating a report which contains totals


-Create a report based on the table Employees.Calculate the total sum of the salaries

a) Creating a report which contains totals and data groups

-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

You might also like