Topic 5. Data Models: Hneu, Department of Information Systems, Databases Course, V. V. Fedko
Topic 5. Data Models: Hneu, Department of Information Systems, Databases Course, V. V. Fedko
Data models
HNEU,
Department of Information Systems,
Databases Course,
V. V. Fedko
Contents
1. Data modelling
2. Classification of models
3. Advantages and Disadvantages of Various Data Models
4. Degrees of data abstraction
Send your answers at email Name the Word file according to the template
[email protected] TN_Surname_specialty_group, for example,
T5_Johnson_121.017_1.
Just as you are not likely to build a good house without a blueprint, you are equally
unlikely to create a good database without first creating an appropriate data model.
Seller Buyer
1:M 1:M
Product Invoice
1:M 1:M
Invoice_line
Relation (Table)
Relation
PRODUCTS schema
Primary
key PRODUCT_ID NAME PRICE PURCHASE_PRICE
1 Bread "Ukrainian" 13.50 12.00 Tuple
2 Baton "Milk" 12.80 12.50 (Row)
3 Bun with poppy seeds 10 9
Characteristics:
• Offers Organisation-wide coverage of the business concepts.
• This type of Data Models are designed and developed for a business audience.
• The conceptual model is developed independently of hardware specifications like
data storage capacity, location or software specifications like DBMS vendor and
technology. The focus is to represent data as a user will see it in the "real world".
Product
Sale Manufacturer
Logical Model
Name: String
Price: Number Sale_date: Datetime Name: String
Purchase_price: Number Quantity: Number Address: String
Phone: String
Sale
Product Manufacturer
SaleId: INTEGER
ProductId: INTEGER ManufacturerId: INTEGER
Physical Model Sale_date: DATE
Name: VARCHAR(25) ManufacturerId: INTEGER (FK) Name: VARCHAR(30)
Price: MONEY ProductId: INTEGER (FK) Address: VARCHAR(40)
Purchase_price: MONEY Quantity: SMALLINT Phone: VARCHAR(15)
Send your answers at email Name the Word file according to the template
[email protected] TN_Surname_specialty_group, for example,
T5_Johnson_121.017_1.