You are on page 1of 4

Barcode/ name/ price/ discount

properties of database management system

A- atomicity
C- consistency (inconsistent is when half of the product had new tags, but another
half remained old.)
(Like money transfer in the bank)
I- isolation
D-durability

- Atomicity requires that each transaction be "all or nothing"


- The consistency property ensures that any transaction will bring the database
from one valid state to another.
- Providing isolation is the main goal of concurrency control.
The isolation property ensures that the concurrent execution of transactions
results in
a system state that would be obtained if transactions were executed
sequentially, i.e., one after the other.
- The durability property ensures that once a transaction has been committed,
it will remain so, even in the event of power loss, crashes, or errors.
In a relational database, for instance, once a group of SQL statements
execute,
the results need to be stored permanently (even if the database crashes
immediately thereafter).

Nothing can stop the transaction. transaction - sequence of operations performed as


a single work.
-----------------------------------------------------------------------------------
-----------------------------------
-----------------------------------------------------------------------------------
-----------------------------------
Here are my SQL codes:
1) SELECT products.price, products.name
FROM Products
WHERE products.price>44 and products.price<55

2) SELECT products.name, products.price, products.barcode


FROM Products
INNER JOIN Categories on Products.FK_categories = Categories.ID_categories
WHERE Categories.Name="Snacks&Sweets"

3)
SELECT products.name, products.price, Manufacturers.PhoneNumber
FROM Products
INNER JOIN Manufacturers on Products.FK_manufacturers =
Manufacturers.ID_manufacturers
INNER JOIN Categories on Products.FK_categories = Categories.ID_categories
WHERE Categories.Name="Snacks&Sweets" and Products.price<50
"you can use (and, or, not)"

-----------------------------------------------------------------------------------
----------------------------------
To know if it�s possible to create the new software:
T: Technical feasibility
E: Economical feasibility
S: Schedule feasibility
O: Operational feasibility
L: Legal feasibility

Different components of computer system:

HW - hardware
SW - software
MW - meatware

what should be taken into account when developing a new system?


1) is it easy to learn this system? (MW)
2) software should make sense to the user, not only to developer
-----------------------------------------------------------------------------------
--------------------------------------

Stages in system analysis:


A - research + analysis
B - design
C - Production + testing
D - documentation
E - Implementation + Evaluation

-----------------------------------------------------------------------------------
------------------------------------
Implementation - replacing the present system with the new system.
Types of implementation:
- Parallel running
- Pilot Implementation
- Phased Implementation
- Direct changeover

Disadvantages of direct changeover:


- it will take a lot of time to train meatware
- If there are bugs, then whole company will be crashed.

Advantages:
- Budget. You will pay only for old or new one. You will never pay for both.

Disadvantages of parallel running:


- you have to pay for both softwares.

Advantages:
- bugs can be easily found
- personal can easily get used to it

Pilot implementation: No one will use both systems.


Advantages:
-step by step training

Disadvantages of pilot implementation:


- you have to pay for both softwares.

Phase implementation:
Some will use old system, other will you new system.
Partly training. Parts are new and change happens step by step.
-----------------------------------------------------------------------------------
--------------------------------------
-On -premises:
Download it once, use forever
-Software as a service:
Monthly subscription, online use.
Adventages of SaaS:
- Price of lower in short term
- You can use it on a several devices
- You don't have to worry about updates
- outside storage
- Tech support

Disanvantages of SaaS:
- You don't have control over system
-
-----------------------------------------------------------------------------------
--------------------------------------
Things to do in case of direct implementation:
- Save data
- Migrate data
When migrating data:
Things to do in when migrating the data:
Extract the data => Transform it => Load the data => Validation rules
Data migration can differ in different systems:
-data structure
-data format (date, year/month/day vs year/day/month)
-character set (different alphabets)
-validation rules (how valid is information in different system/ For example: 30th
of february is not valid)
-----------------------------------------------------------------------------------
---------------------------------------

If everything is taken into account before implementation, there is more thing to


consider:
Training:
-documentation (advantages - low cost, disadvantages - lack of practice)
-Formal class (advantages - live explanation, disadvantages - expensive, takes time
to interract wit every individual)
-Videos
-Video conference (advantages - you can interract and person does not have to be
near you, disadvantages - expensive)
-----------------------------------------------------------------------------------
-----------------------------------
Reasons for Data lose:
- File corruption/ Data corruption/ SW Failure
- Accidntal deletion
- Malicious Deletion
- HW Failure
- Natural disaster
- Viruses
- Hacking
-----------------------------------------------------------------------------------
------------------------------------
Transaction - sequence of operations peformed as a single work.
-----------------------------------------------------------------

benefits of data sharing in database?

client can access thi data to find hotels that he wants to (search)
money form data sharing for the booking company
easier for client to find the best hotel for him
client will be in charge of discounts and offers offered by the hotel
hotel can get more tourists because of this database.

You might also like