Hardware and software setup

Creation technology Database “Car service. Access database Car service Using databases in the work of a car service

Database Access Car service is designed to automate the work of a car repair company. The tables in the database are filled with data, simple and cross queries, as well as adding, updating and deleting queries are performed. Forms for working with data and reports that can be printed are also made.
Access Database Car Dealer contains 6 tables, 9 queries, 7 forms + main button form, 5 reports. This Access database is ideal for further optimization and refinement for your own needs.

ATTENTION! There is an explanatory note (21 pages)

The Access Car Service database allows you to add and edit information about current repairs, car service customers, spare parts, storage warehouses and repaired cars. Also, the Auto Service database provides requests for the withdrawal of a certain type of spare parts, the calculation of the total cost of repairs, including the cost of work and the cost of spare parts, the total amount for each client, etc. Update request, delete request, add request, create table, cross request are implemented.

The purpose of the practical tasks is to acquire the skills of analyzing the subject area, designing the database, and its physical implementation in the Access DBMS.
The result of the work is presented in the form of an Access database, which should contain:
the structure of the designed tables,
data schema with relationships between tables,
examples of forms providing a user interface,
queries (in Design mode and in SQL language),
reports (in report mode and in Design mode),
main button form.

Cars Table - Access Database

Craftsman Table - Access Database Car Service

Job Cost Query - Access Database Car Service

Cross Query - Access Database Car Service

Customer Form - Access Database Car Service

Warehouses Form - Access Database Car Service

Amount with Part and Labor Report - Access Database Car Service

Main Button Form - Access Database Car Service

Main Button Form - Access Database Car Service

Ready-made database The Access Car Service database is available for download at the link below.

. Ready database Access "Car service"

Download database (DB) MS Access; DB Access Car service; car sales access; access database; db access; subd access; access databases; access example; access programming; ready database; creating a database; DBMS database; access coursework; database example; access program; access description; access abstract; access requests; access examples; download database access; access objects; db in access; download subd access; ms access database; subd access abstract; subd ms access; access benefits; database; download database on access; Database; relational database; database management systems; course database; download database; access database download; access database download; car repair; auto repair; car salon; car repair service

Creation technology Database "Car Service"

To create a database, the goals and objectives of the Autoservice database were set:

  • ? ensure customer satisfaction with both the service and the firm;
  • ? provide the best service in the area
  • ? warranty repair of sold new and used cars;
  • ? commercial preventive maintenance (adjustments, etc.);
  • ? commercial rehabilitation service (repair);
  • ? repair of used components and assemblies for the stock of remanufactured spare parts.
  • ? people,
  • ? materials,
  • ? computers,
  • ? machines,
  • ? building.

The developed and created Database "Car Service" is a set of interrelated components and displays various areas of car repair.

Figure 14. Database "Car Service"

The system is divided into two subsystems and one extension:

  • ? Repair of the technical part of the car.
  • ? Expansion - car interior repair.

The main system "Repair of the technical part of the car" consists of four tables (see Fig. 15):

« Order"- including the necessary information about the order for the repair and diagnostics of the car, that is:

  • ? Automobile.
  • ? Owner.
  • ? The reason for contacting the service station.

« Repair"- a table describing the process of repairing the technical parts of the car, namely the parts that need to be repaired in the near future. This table includes the items:

  • ? Engine repair.
  • ? Checkpoint repair.
  • ? Chassis repair.
  • ? Fuel system repair.

Figure 15. Order for the repair of technical parts

Table " Diagnostics', associated with ' order» and allocates cars for diagnostics of certain parts of the car, i.e. engine, gearbox, chassis and fuel system.

AT " Diagnostics» store information about cars that need diagnostics of a particular part.

  • ? Engine diagnostics.
  • ? Checkpoint diagnostics.
  • ? Chassis diagnostics.
  • ? Fuel system diagnostics.

Main system works on the basis “Cascading models” and refers on the standard GOST 21624 -76

GOST 18507 -73

The operation of the system comes from the collection of information about the order, then diagnostics take place, which determines the need for repair of the machine. Each stage (except the initial one) cannot begin until the next one is completed, except if the car does not need repairs.

The IT-service subsystem was created in order to provide a guarantee of repair, handling a warranty claim and purchasing spare parts for repairs.

  • 1) filing a claim,
  • 2) issuing a guarantee,
  • 3) ordering spare parts, and includes 11 tables, one of which is common to the IT service. (see fig. 16).

Figure 16. IT service

IT service - divides the entire service into 3 parts:

  • ? warranty claims,
  • ? issuing a guarantee,
  • ? spare parts order.

Data 1 and 2 - contain information about customers.

Receipt 1 - the table contains data on the time of treatment and the price of services rendered.

Reason for contact - a table that contains information about the reason for contacting the service station under warranty. It has a connection with the tables: agreement of SRT 1 and Outcome 1, where data on the agreement of SRT with the claim and the possibility of solving the problem, respectively, are noted.

The extension represents a kind of increase in car repair services. Now the system has body repair and interior repair, which are also handled by the service station.

The extension subsystem consists of two tables and influences two tables from the main system. (see fig. 17)


Figure 17. Extension

The tables "body repair and interior repair" include information on the types of services.

Body repair:

  • ? Parts replacement.
  • ? Putty.
  • ? Painting.
  • ? Lacquering.
  • ? Polishing.

Interior repair:

  • ? Replacement of components.
  • ? Component repair.

From these tables follow the links with the table " Price» to fix prices for services.

Functional:

  • ? outfit orders,
  • ? work,
  • ? services,
  • ? brigade,
  • ? norm-hours.

Database resources:

  • ? people,
  • ? equipment,
  • ? materials,
  • ? computers,
  • ? machines,
  • ? building.

The cascade model, shown in Figure 18, provides for the sequential execution of all stages of the project in a strictly fixed order. The transition to the next stage means the complete completion of the work at the previous stage.

This is represented in the database like this:

  • ? taking orders for repairs
  • ? Car diagnostics,
  • ? car repair,
  • ? release of the car from the service station.

Figure 18. Database model

Analysis phase

Here is the application for car repair at the service station. The customer fills out a document where the customer indicates the service that he needs.

Design phase

At this stage, the car is sent for diagnostics, which determines the cause of the car breakdown. In the future, at the choice of the customer, the machine is sent for repair.

Implementation and implementation phase

In this phase, repairs are carried out on the parts of the car that, according to the result of the diagnostics, need to be repaired or replaced. Also, without any checks, at this stage, the exterior of the car and the interior can be repaired.

Maintenance phase

At this stage, a warranty is issued for repairs and a calculation of the funds that were spent on the diagnosis and repair of the car, after which the car is returned to the owner.

Properties of the system

Integrability- the system is integrable, as it has the ability to interact with various banks (payment for services through these banks), with a tax company (sale of spare parts outside the region). Also, the system is connected with various car dealerships (under the contract) and insurance companies that insure the car service itself, as well as the company where spare parts are purchased.

Divisibility- the system consists of many subsystems that perform certain functions and have the ability to work offline.

Integrity- despite the fact that the system is divisible, when fully operational, it will not work if the functionality of one of its subsystems is disrupted.

Structurality- distribution by levels and hierarchies of system elements, i.e. the system will not be able to continue working if one of the stages is skipped (without a guarantee, the customer will not be able to file a claim with the service station).

Standards

GOST 21624 -76 - this standard establishes requirements for products to ensure a given level of operational manufacturability (ET) and maintainability (RP), as well as the values ​​\u200b\u200bof the ET and RP indicators provided for by GOST 20334-81, for automotive products - all-wheel drive and partially drive vehicles (trucks, cars and buses), trailers and semi-trailers (hereinafter - products).

GOST 18507 -73 - this standard applies to buses and cars (hereinafter referred to as cars) and establishes methods for their control tests after major repairs carried out by car repair enterprises.

The standard does not apply to cars, the overhaul of which was made on the orders of individual owners.

Terms of Reference

1. Make a common database of all services at the service station for a particular car.


Figure 19. General base of all services at service stations

2. Data on the necessary tools and materials.


Figure 20. Data on tools and materials

3. Links with third party systems.

Figure 21. Third party systems


Figure 22. Auto centers

Figure 23. Insurers

Figure 24. Insurers field

4. Comments on the quality of service.

Figure 25. Comments

Figure 26. Visitor reviews


Figure 27. Reviews

In the course of the work, a database was created in the MS Access database management system. The work shows a step-by-step technology for creating a database. An example of the database "Car service" is given. This base was tested at the service station. The system has been tested. In the course of the work, adjustments were made and the final version of the Autoservice database was presented in the work.

Send your good work in the knowledge base is simple. Use the form below

Students, graduate students, young scientists who use the knowledge base in their studies and work will be very grateful to you.

Hosted at http://www.allbest.ru/

THE FIRST HIGHER TECHNICAL INSTITUTION OF RUSSIA

MINISTRY OF EDUCATION AND SCIENCE OF THE RUSSIAN FEDERATION

Federal State Budgetary Educational Institution of Higher Professional Education

"NATIONAL MINERAL UNIVERSITY "MINING"

Course work

"Database - car service"

By discipline: Applied programming

Completed by: Stepanova K.A.

Checked by: Matyukhin S.A.

St. Petersburg 2013

Introduction

1. Description of the subject area

2. Description of the database structure

3. Tables

4. Terms of reference

5. Description of the program

6. Components

7. Scheme for the user

8. Interface

Conclusion

Bibliography

Appendix

Introduction

In our age, the age of digital technologies, computers play an important role. Now in every organization - be it government agencies or private firms, everything is computerized, and this is due to very high computing power. Calculation of even the most complex processes and tasks is carried out in the shortest possible time, and the time factor often plays a major role in most of the tasks. The computing power and memory capacity of computers in recent years have become incredibly large, and their prices have dropped significantly, which contributed to the mass computerization of absolutely all branches of human activity. Now it is difficult to imagine life without a smart machine that simplifies and speeds up a huge number of tasks. The usefulness of a computer is reduced to nothing in the absence of specialized software, without which the "iron assistant" becomes useless. This work will discuss the creation of such an important, and in most organizations and the main program, the name of which is a database. In this particular case, the car service database.

1. Description of the subject area

The purpose of the task is to obtain a software product that allows you to store information about the customers of the service, defects in their cars, ensuring the efficiency and reliability of data processing.

The car service database is intended for car service operators and provides access to information about the brand of car, date of visit, malfunction, vin number of the car, as well as information about customers: phone number, etc.

The effectiveness of the program lies in reducing the time for processing, searching for the necessary information.

The need to automate this task is due to the fact that the selection of the necessary data for reports and accounting for the work of engineers is usually done manually or using Excel, spending a significant amount of time on this. This program also provides the ability to search, filter and sort data.

No special knowledge is required to work with the program in the field of programming.

2. Description of the database structure

Table links:

The custumers table is linked to the masters table using a 1:N relationship on the vin_number field

The custumers table is linked to the calculation table with a 1:1 relationship on the vin_number field

3. tables

Table 1: Clients (master table)

Table 2: Masters (slave)

Table 3: Masters (slave)

software car service database editing

4. Technical task

Basis for development:

The task of the teacher for conducting practical classes and completing coursework.

Purpose of development:

The program is designed to automate the work of car service operators.

Program requirements:

Should automate the work of a car service operator

Information must be permanently stored on the hard drive of the computer

· It should be possible to view the database with the possibility of deleting the specified information from it.

Reliability requirements:

· The program should process erroneous actions of the user and inform him about it.

· The program should provide control of the input information.

5. Program description

private void Form1_Load(object sender, EventArgs e) () // load main components

private void b_add_Click(object sender, EventArgs e) () // adding a new entry

private void b_replace_Click(object sender, EventArgs e) () // edit entry

private void b_cancel1_Click(object sender, EventArgs e) () // cancel action

private void b_save_Click(object sender, EventArgs e) () // save changes

private void b_record1_Click(object sender, EventArgs e) () // write data

private void b_delete_Click(object sender, EventArgs e) () // delete data

private void b_exit_Click(object sender, EventArgs e) () // program exit

6. Components

7. Scheme foruser

Table 1 "Clients" and table 2 "Masters" are connected by a one-to-many relationship by the vin_number field.

Table 1 "Customers" and table 3 "Cost" are linked in a one-to-one relationship by the vin_number field.

8. Interface

Adding a new entry

Editing an old post

Deleting an entry

Sort by visit date

Signed tables

The main table of the "Car Service" program includes:

1. Customer car list

2. Date of contact of the car owner

3. Fault

4. Customer phone

5. Vin number

6. Management of the list of clients is carried out by buttons (Add/Replace/Delete)

7. Display and record salon clients

8. Sorting

10. Choice of masters

11. Name of tables

12. Exit the program

Conclusion

The result of the work was the creation of software that serves the workplace of the car service operator.

In the process of completing the course work, skills were acquired in the field of building and programming databases in the C # programming language.

Bibliography

1. Matyukhin S.A. "Programming in C # object-oriented approach" - educational and methodical complex 2013

2. A. Hejlsberg, M. Torgersen, S. Wiltamuth, P. Gold C# programming language. Classic Computer Science. 4th Edition = C# Programming Language (Covering C# 4.0), 4th Ed. - St. Petersburg: "Piter", 2012. - 784 p. -- ISBN 978-5-459-00283-6

3. E. Stillman, J. Green Learning C#. 2nd Edition = Head First C#, 2ed. - St. Petersburg: "Piter", 2012. - 704 p. -- ISBN 978-5-4461-0105-4

4. Andrew Troelsen C# 5.0 Programming Language and the .NET 4.5 Framework, 6th edition = Pro C# 5.0 and the .NET 4.5 Framework, 6th edition. - M.: "Williams", 2013. - 1312 p. -- ISBN 978-5-8459-1814-7

5. Joseph Albahari, Ben Albahari C# 5.0. Directory. Full language description = C# 5.0 in a Nutshell: The Definitive Reference. - M.: "Williams", 2013. - 1008 p. -- ISBN 978-5-8459-1819-2

6. Herbert Schildt. C# 4.0: The Complete Reference = C# 4.0 The Complete Reference. - M.: "Williams", 2010. - S. 1056. - ISBN 978-5-8459-1684-6

Appendix. The codeprograms

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

public partial class Form1: Form

InitializeComponent();

groupBox1.Visible = false;

groupBox2.Visible = false;

private void customersBindingNavigatorSaveItem_Click_1(object sender, EventArgs e)

this.Validate();

this.customersBindingSource.EndEdit();

this.tableAdapterManager.UpdateAll(this.db_autoDataSet);

private void Form1_Load(object sender, EventArgs e)

// TODO: This line of code loads data into the "db_autoDataSet.masters" table. You can move, or remove it, as needed.

this.mastersTableAdapter.Fill(this.db_autoDataSet.masters);

// TODO: This line of code loads data into the "db_autoDataSet.calculation" table. You can move, or remove it, as needed.

this.calculationTableAdapter.Fill(this.db_autoDataSet.calculation);

// TODO: This line of code loads data into the "db_autoDataSet.customers" table. You can move, or remove it, as needed.

this.customersTableAdapter.Fill(this.db_autoDataSet.customers);

private void b_exit_Click(object sender, EventArgs e)

private void button5_Click_1(object sender, EventArgs e)

private void b_add_Click(object sender, EventArgs e)

groupBox1.Visible = true;

b_replace.Visible = false;

b_delete.Visible = false;

b_exit.Visible = false;

b_add.Visible = false;

b_exit2.Visible = false;

b_save.Visible = false;

textBox1.Text = "";

textBox2.Text = "";

textBox3.Text = "";

textBox4.Text = "";

textBox5.Text = "";

private void b_replace_Click(object sender, EventArgs e)

textBox10.Text = customers DataGridView.CurrentRow.Cells.Value.ToString();

textBox9.Text = customers DataGridView.CurrentRow.Cells.Value.ToString();

textBox8.Text = customers DataGridView.CurrentRow.Cells.Value.ToString();

textBox7.Text = customers DataGridView.CurrentRow.Cells.Value.ToString();

textBox6.Text = customers DataGridView.CurrentRow.Cells.Value.ToString();

textBox6.ReadOnly = true;

groupBox2.Visible = true;

b_add.Visible = false;

b_delete.Visible = false;

b_exit.Visible = false;

b_exit2.Visible = false;

b_replace.Visible = false;

b_save.Visible = false;

private void b_cancel1_Click(object sender, EventArgs e)

b_add.Visible = true;

b_delete.Visible = true;

b_exit.Visible = true;

b_exit2.Visible = true;

b_replace.Visible = true;

b_save.Visible = true;

groupBox1.Visible = false;

private void b_cancel2_Click(object sender, EventArgs e)

b_add.Visible = true;

b_delete.Visible = true;

b_exit.Visible = true;

b_exit2.Visible = true;

b_replace.Visible = true;

b_save.Visible = true;

groupBox2.Visible = false;

private void b_save_Click(object sender, EventArgs e)

customersBindingNavigatorSaveItem_Click_1(sender, e);

private void b_record1_Click(object sender, EventArgs e)

DataTable table = db_autoDataSet.Tables;

DataRow row = table.NewRow();

row = textBox1.Text;

row = Convert.ToDateTime(textBox2.Text);

row = textBox3.Text;

row = textBox4.Text;

row = textBox5.Text;

table.Rows.Add(row);

groupBox1.Hide();

b_replace.Visible = true;

b_delete.Visible = true;

b_exit.Visible = true;

b_add.Visible = true;

b_exit2.Visible = true;

b_save.Visible = true;

private void b_record2_Click(object sender, EventArgs e)

DataTable table = db_autoDataSet.Tables;//12 bound dynamic. tab. table with the first file from the database

vinRab = Convert.ToInt64 (customersDataGridView.CurrentRow.Cells.Value.ToString());//13 got the vin of the current record

DataRow row = table.Rows.Find(vinRab);//14 combined dynamic. the row row with the file entry vin c shifrRab and put the DataSet into the "editing" state, in which it allows you to change the field values

row = textBox10.Text;//15 written to the second field of the row given from the window

row = Convert.ToDateTime(textBox9.Text);// 15 is written to the third field of row row

row = textBox8.Text; //15 was written to the fourth field of the row row row = textBox7.Text;

row = textBox6.Text;

table.AcceptChanges();//15 AcceptChanges command allows you to accept changed field values

groupBox2.Hide();//16

b_replace.Visible = true;

b_delete.Visible = true;

b_exit.Visible = true;

b_add.Visible = true;

b_exit2.Visible = true;

b_save.Visible = true;

private void b_delete_Click(object sender, EventArgs e)

// deleting the line under the cursor

// first we build a warning so as not to make an erroneous deletion

string s1, s2, s3, s4, s5, message;

DialogResult result;// 18

int ind = customersDataGridView.CurrentRow.Index;

s1 = customersDataGridView.CurrentRow.Cells.Value.ToString();

s2 = customersDataGridView.CurrentRow.Cells.Value.ToString();

s3 = customersDataGridView.CurrentRow.Cells.Value.ToString();

s4 = customersDataGridView.CurrentRow.Cells.Value.ToString();

s5 = customersDataGridView.CurrentRow.Cells.Value.ToString();

message = "Car brand= " + s1 + "\nDate of visit= " + s2 + "\n Fault= " + s3 + "\n Customer phone= " + s4 + "\n vin number" + s5;

// result variable can take either DialogResult.Yes or DialogResult.No

result = MessageBox.Show(message, "Delete next entry? ",

MessageBoxButtons.YesNo, MessageBoxIcon.Question);

if (result == DialogResult.Yes)//Line is deleted

(// 20 The current table from the customersDataGridView of the DataGrid type is written to the buffer table

CurrencyManager CurMng = (CurrencyManager)customersDataGridView.BindingContext;

if (CurMng.Count > 0) // if the table is not empty

CurMng.RemoveAt(CurMng.Position);// deleting the marked position

// here result == DialogResult.No and deletion is rejected

// exit procedure

Hosted on Allbest.ru

Similar Documents

    Database creation. Search, change and delete records. Data processing and exchange. Database design. Definition of formulas for the calculated part of the base. Editing fields and records. Forms of presentation of information contained in the database.

    term paper, added 02/23/2009

    Development of a software product - database "Excursion" in the integrated programming environment C ++ Builder 6. Determining the order of viewing database data, editing and deleting them. Features of the user manual and the general interface of the program.

    term paper, added 11/03/2013

    Substantiation of the need for database management systems in enterprises. Features of the development of database management software that provides viewing, editing, inserting database records, generating queries and reports.

    term paper, added 01/23/2010

    Creation of a database and description of the program "Study database", designed to group information about students. Characteristics of the functionality of the program: adding records to the database, editing, deleting records and sorting data.

    term paper, added 04/25/2011

    Development of the program "Database of sports equipment". Description of the operation algorithm of modules and blocks. Structural diagram of the project representation. The process of finding the right information. Automatic data sorting. Adding and editing records.

    term paper, added 08/15/2013

    Creation of simple reference forms. Editing form properties in design mode. Adding and editing properties of controls. Designing reports for the database. Bringing the table to normal form and building a data schema.

    abstract, added 11/23/2008

    The procedure for designing and developing a database and software. Information about the structure of the database, created tables, forms, reports, queries, stored information. Logical and conceptual data models; choice of software.

    term paper, added 01/20/2010

    Constraint types that maintain integrity in the relational data model. Determining the value of a primary key field using a generator. Adding, modifying and deleting records in the database table "Library" in the SQL programming language.

    laboratory work, added 10/10/2012

    Domain analysis. Requirements for compiling a hotel database. Implementation of the process of searching for the necessary information. Formation of tables, queries, reports and their printing. Editing, adding and storing data.

    term paper, added 02/07/2016

    Rationale for the choice of application development tools. Adding, deleting, editing information. Reflection of information from the database. Search for information on the selected table. Projects Data, Entity, Logic, Firm. Scheme of interaction between the projects of the program.

Introduction 3
SECTION 1. Database development 4

      Problem Statement 4
      Domain analysis 5
SECTION 2. Modeling data structures 7
2.1. Development of a conceptual database model 7
2.2. Development of a logical data model 9
2.3. Converting an Entity-Relationship Model to a Relational Model
data model 10
SECTION 3. Database Design 12
3.1. Development of tables 12
3.2. Designing Data Entry Forms 17
3.3. Developing database queries 21
3.4. Report development 27
CONCLUSION 30
REFERENCES 31
APPENDICES 32

INTRODUCTION

To date, the design of databases (hereinafter referred to as the DB) has become important for many organizations that use computer technology to increase the productivity of their work. Databases have become the basis of information systems, and their use is becoming an integral part of the functioning of any enterprise.
The object of the course work is the study of technologies for designing a relational database.
The subject of the course work is the study of the principles of developing relational databases on the example of designing and creating a database "Autoservice".
The purpose of database design is to display the process of repair activities of a small enterprise
To achieve this goal, the following tasks were set:

    definition and analysis of the subject area;
    development of a conceptual database model;
    building tables of the database "Autoservice";
    building forms, queries and reports of this database.
There are many different sources of information regarding relational database design and application. Of all the proposed resources, those were selected that are suitable for designing databases in the OpenOffice.org Base environment. So, for example, the books cover the basic techniques and principles of working and creating databases using Base, which is part of OpenOffice.org. The sources provide basic information about creating tables, forms, queries and reports. The books describe guidelines for designing and implementing databases.

SECTION 1. Database development

      Formulation of the problem
This database is intended for organizations engaged in any kind of car maintenance services.
The main functions of the database relate to accounting for all cars that have ever been in a car service, storing complete information about each car (make, series and technical passport number, chassis number and engine number, color, year of manufacture, etc.).
The database should also store information about each owner who at least once used the services of a car service. It should be possible to store not only the basic and most necessary information, but also notes, clarifications, descriptions, and technical data. characteristics of installed spare parts and a lot of other useful information.
The car service administration may require the following data:
    Full name, series and number of the technical passport of the car, year of manufacture and brand of the manufacturer;
    information about the date of acceptance of this order, indicating the cost of repair work, the responsible foreman and the date of payment for the order;
    list of repaired faults in the car of this owner;
    Full name of the car service worker who eliminated this malfunction of the car of this owner and his position.
The DBMS operator can make the following changes:
    add or change information about orders;
    add or change information about an employee;
    delete information about the car service worker.
The reports must provide for the possibility of issuing a certificate of a malfunction of the car of this owner and a report on the work of the car service (the number of cars being repaired, the name of the employee who repaired them).
      Domain analysis
The Autoservice database was developed for the administrator and car service employees who receive and process orders for car repairs and maintenance.
The subject area in the task is data on malfunctions, car owners and car service workers.
The developed information system should perform the following functions:
    Providing a large collection of information in the form of database tables.
    Formation of various requests for:
    the number of orders for a certain time;
    brands of repaired cars;
    calculation of repair work for a certain year;
    the total amount of paid and unpaid works;
    percentage of paid and unpaid work.
Output of information in the form of reports:
    brands of repaired cars, indicating the number of visits to the car service;
    the number of unpaid orders;
    general calculation of repair work for a certain time of the car service.
The following requirements are imposed on the database being developed: data integrity, no duplication, no many-to-many relationships, no recursive links, no links with attributes, no multiple attributes.
The requirements for the information contained in the database are:
significance, completeness, reliability, understandability, effectiveness.
This representation increases the usability of the database, in this case, entering information will be reduced to selecting the necessary information from the list, where possible, which will certainly increase the speed of entering information and help avoid incorrect input of parameters.
As a result of the creation and implementation of this database, it is required to obtain the following performance indicators: reducing the time when entering new data and changing old ones, and, consequently, increasing labor productivity, as well as timely and complete receipt of information necessary for the administration of a car service.

SECTION 2. Modeling data structures

2.1. Development of a conceptual database model

When building a conceptual model of the database, we will use the recommendations of Karpova I.P. . As the author notes, the conceptual database model is a high-level object-oriented model of the subject area, representing the object area as a set of objects that have certain properties and are in some relationship. The main goal of developing a high-level data model is to create a model of user perception of data and to agree on a large number of technical aspects related to database design. The conceptual data model is not tied to a specific physical implementation of databases and does not depend on a specific DBMS. The conceptual model is created on the basis of ideas about the subject area of ​​each type of user, which is a set of data that the user needs to solve their problems.
The conceptual model for the "Autoservice" base was designed as an "entity-relationship" model.
The basic concepts of the model include concepts such as entity (object), relationship (relationship), entity types, relationship types, and attributes.
An entity is a real or imagined entity about which information must be stored and made available. In ER model diagrams, an entity is represented as a rectangle containing the name of the entity. Each entity is defined by a set of attributes.
An attribute is a named characteristic of an entity. Its name must be unique for a specific entity type, but may be the same for different entity types. An attribute of an entity is any detail that serves to clarify, identify, classify, quantify, or express the state of an entity. We will enter the attribute names in a rectangle denoting the entity and write it under the name of the entity.
Relationships are established between entities.
A relationship is a graphical association established between two entities. This association is always binary and can exist between two different entities or between an entity and itself (recursive association). Connections - denoted by lines.
Thus, from the description of the subject area, we extract all types
entities:
– Customers;
– Orders;
– Masters;
- List of works.
Each of the entities will define its own set of attributes.
The entity Customer is defined by the following set of attributes:

    customer code;
    FULL NAME.;
    passport data;
    series and no. passports;
    car model;
    Colour;
    chassis number;
    engine number;
    year of issue.
The attributes of the Orders entity are defined as follows:
    customer code;
    order code;
    date of receipt and payment;
    costing of repairs;
    responsible master;
    comments.
The Master entity is documented based on the following attributes:
    master number;
    FULL NAME;
    position in the company;
The List of Works entity is defined by the following set of attributes:
    request code;
    work code;
    detailing.
In accordance with the domain model, the following conceptual model of the "Car Service" database is presented (Fig. 1).
Fig.1 Conceptual model of the database "Car service".

2.2. Development of a logical data model

Converting a local conceptual data model to a local logical model consists in removing unwanted elements from the conceptual models and converting the resulting models into local logical models. Unwanted items include:
- many-to-many relationships;
– recursive links;
– links to attributes.
In the created conceptual model, the above undesirable elements were not found.
The logical scheme of the data is shown in Fig.2.

Rice. 2. Logical scheme of data.

      Converting an entity-relationship model to a relational data model
Converting an entity-relationship model to a relational data model
carried out by sequentially performing a series of steps:
- each entity is associated with the relation of the relational data model;
– each entity attribute becomes an attribute of the corresponding relation;
- The primary key of the entity becomes the primary key of the corresponding relation. Attributes that are part of the primary key of a relationship automatically receive the mandatory (NOT NULL) property. In each relation corresponding to a child entity, a set of attributes of the main entity is added, which is the primary key of the main entity. In the relation corresponding to the subordinate entity, this set of attributes becomes the foreign key.
This process is discussed below.

SECTION 3. Database Design

      Table development
A table is an object designed to store data in the form of records (rows) and fields (columns).
The OpenOffice.org Base program provides three different ways to create a database table:
    create tables in design mode;
    using a wizard to create a table;
    creating a view.
In this work, the tables were created using the wizard.
For each relational database table, its structure is given: the composition of the fields, their names, data type and size of each field, table keys and other field properties.
The development of database tables is carried out sequentially:
    Definition of necessary tables and fields.
The table is the basis of the database, therefore, when developing tables, it is recommended to be guided by the following basic principles:
    information should not be duplicated in a table or between tables;
    data stored in only one table is updated only in that table;
    each table should contain information on only one topic.
Each table contains information about a particular topic, and each field in the table contains a specific fact about the topic of the table. For each table in the database, you must define the properties contained in them.
The Autoservice database contains four tables:
    The Customers table (Fig. 3) is designed to enter information about the owner of the car being repaired. This table contains the following attributes:
    FULL NAME. (field type - text , length - 50, required);
    passport data (field type - text, length - 100, mandatory);
    series and no. passports (field type - text, length - 15, mandatory);
    Car brand (field type - text , length - 100, required);
    car color (field type - text , length - 100, optional);
    chassis number (field type - text , length - 100, optional);
    engine number (field type - numeric, length - 100, optional);
    year of issue (field type - date , required).
Rice. 3. Table Customers.
    The Orders table (Fig. 4) is intended for entering information about orders: when ordered, who ordered, responsible foreman, cost of repairs, comments. This table contains the following attributes:
    order code (field type – integer , length – 10, mandatory);
    customer code (field type - text , length - 10, optional);
    order date (field type - date , optional);
    general repair cost estimate (field type - decimal, length - 100, optional);
    responsible master (field type - integer , length - 10, optional);
    payment date (field type - date , optional);
    date of receipt (field type - date , optional);
    remarks (field type - test , length - 100, optional).
Rice. 4. Orders table.
    Table Repair work (Fig. 5) is intended to describe all types of repair work that were performed at this enterprise.
This table contains the following attributes:
    work code (field type - integer, length - 10, mandatory);
    order code (field type - integer , length - 10, mandatory);
    detailing (field type - text, length - 100, optional).
Rice. 5. List of works.
    Masters (Fig. 6). The wizard table is designed to enter information about employees. This table contains the following attributes:
    master number (field type - integer , length - 10, mandatory);
    FULL NAME. master (field type - text, length - 100, optional);
    position (field type - text, length - 100, optional).
Rice. 6. Masters.
    Establishment of primary keys.
Let's define a primary key for each entity, while taking into account that strong entities have only one key field, and weak entities have as many as links. When choosing a primary key, we will be guided by the rules:
– the key must contain a minimum set of attributes;
– you should use the key, the probability of changing the values ​​of which is minimal;
– the key value must have a minimum length.
Based on the foregoing, we define the following key fields for the existing entities:
    entity Customers has a key field Customer Code;
    the Orders entity is defined by the Order code key;
    the Master entity has a master number key field;
    the Repair work entity is defined by the Request code key;
    Formation of links between tables.
After breaking down the information into tables and defining the key fields, you need to choose how the DBMS will combine related information. To do this, it is necessary to define relationships between database tables.
OpenOffice.org BASE supports four types of table relationships:
– one-to-one (each record in one table corresponds to only one record in another table);
– one-to-many (each record in one table corresponds to many records in another table);
– many-to-one (similar to one-to-many notation);
– many-to-many (one record from the first table can be related to more than one record from the second table, or one record from the second table can be related to more than one record from the first table).
The connections established in the Autoservice database have already been presented in the previous section in Fig. 2.
      Development of information entry forms
Form - an object designed for entering, editing and viewing tabular data in a convenient form.
Forms contain so-called controls that access data in tables. Control elements are text fields for entering and editing data, buttons, checkboxes, switches, lists, labels. Creating forms that contain the necessary controls greatly simplifies the data entry process and helps prevent errors.
OpenOffice.org Base forms provide functionality to perform many tasks that cannot be done by other means, they allow you to perform data validation as you enter, perform calculations, and provide access to data in related tables using subforms.
OpenOffice.org Base offers several ways to create forms. The simplest of these is to use the automatic creation of forms based on a table or query.
There are four simple forms and three subforms for the Autoservice database.
Examples of simple shapes are shown in Figure 7-10.

Fig.7. Customer form.

Fig.8. Form Orders.

Fig.9. List of works.

Fig.10. Masters.
A compound form contains a main form and a subform, a subform. A subform is the same form in its content, but not used independently, but always loaded from some form when opening or creating a document. You can do almost everything in a subform that you can do in a form, except that you cannot insert another subform into it.
When creating fields in subforms, be sure to keep in mind that the names of all fields must be unique within the form, along with all subforms that are used simultaneously in it.
Thanks to compound forms, it becomes possible to simultaneously fill in different tables.
Examples of subforms are shown in fig. 11-13.

Rice. 11. Customer form with subform Orders.
The Customer form with the subform Orders - provides input of the necessary data to identify the customer and view the work performed for this order. This form allows you to enter information in the Customer and Orders tables.

Rice. 12. Form Orders with subform Repair work.
This form allows you to enter information in the Orders and Repairs tables.

Rice. 13. Wizard form with Orders subform.
The Foreman form with the Orders subform allows you to control the execution of work by a specific foreman.

      Developing database queries
A query is an object that allows you to get the necessary data from one or more tables.
Queries are used to extract data from tables and provide it to the user in a convenient form. With their help, they perform data selection, sorting and filtering. You can perform data transformation according to a given algorithm, create new tables, automatically fill tables with data imported from other sources, perform simple calculations in tables, and much more.
The peculiarity of queries is that they draw data from base tables and create on their basis a temporary resulting table (snapshot) - an image of fields and records selected from base tables. Working with an image is faster and more efficient than with tables stored on a hard disk.
On the appropriate request, you can get the data sorted and filtered as needed. Queries can also be used as record sources for forms, reports, and data access pages.
There are several types of requests:
    Sample request. A select query is the most commonly used query type. Queries of this type return data from one or more tables and display it as a table whose records can be updated (with some restrictions). Select queries can also be used to group records and calculate sums,
    etc.................
Liked the article? Share with friends!
Was this article helpful?
Yes
Not
Thanks for your feedback!
Something went wrong and your vote was not counted.
Thank you. Your message has been sent
Did you find an error in the text?
Select it, click Ctrl+Enter and we'll fix it!