Compare the Difference Between Similar Terms

不同ence Between

Home / Technology / IT / Database /不同ence Between Logical and Physical Data Model

不同ence Between Logical and Physical Data Model

December 13, 2014Posted byAdmin

Logical vs Physical Data Model

Before discussing the difference between logical and physical data model, we must know what a data model is. Adata modelis a representation that describes the data and the relationships among them for a certain process. A data model is an essential component used during database design. Logical data model is a very abstract and high level view of data where entities, relationships and keys are identified. It is independent of the database management system (DBMS). A physical data model is derived from the logical data model where it shows howtablesand columns are structured the real physical database. Physical data model is hence dependent on the database management system used.

What is Logical Data Model?

逻辑数据模型描述了数据和再保险lationships in detail at a very high level. This does not include how data is represented physically in the database , but describes at a very abstract level. It basically includes the entities and the relationships among them along with attributes of each entity.

The logical data model includesprimary keysof each entity and also theforeign keysas well. When creating a logical data model first entities and their relationships are identified with the keys. Then attributes of each entity are identified. After that many to many relationships are resolved and normalization is done. A logical data model is independent of the database management system as it does not describe the physical structure of the real database. When designing a logical data model non-formal long names can be used for entities and attributes.

What is Physical Data Model?

A physical data model describes how data is really residing in the database. It includes the specification of all tables and the columns inside them. The table specification includes details such as the table name, number of column s and column specification includes column name and data type. The physical data model also contains the primary keys of each table and also it shows the relationship between tables using foreign keys. Moreover, physical data model contains constraints applied to data and components such astriggersand storedprocedures.

The physical data model depends on the database management system used. So the physical data model forMySQLwould be different from a data model drawn forOracle. When creating the physical data model out of logical data model, first entities are converted into tables. Then relationships ae converted to foreign key constraints. After that attributes are converted to columns of each table.

不同ence Between Logical and Physical Data Model

What is the difference between Logical and Physical Data Model?

• A physical data model describes the physical structure of the database. A logical data model is a high level one that does not describe the physical structure of the database.

• Physical data model is dependent of the database management system used. However, the logical data model is independent of the database management system used.

• Logical data model includes entities, attributes, relationships and keys. Physical data model includes tables, columns, data types, primary and foreign key constraints, triggers and stored procedures.

• In logical data model, long non-formal names are used for entities and attributes. However, in physical data, abbreviated formal names are used for table names and column names.

• The logical data model is first derived from the description. After that only the physical data model is derived.

• The logical data model is normalized to fourth normal form. The physical database model will be deformalized if necessary to meet the requirements.

Summary:

Logical vs Physical Data Model

The logical data model is a high level data model that describes the entities and relationships among data. It also includes attributes and keys of each entity. This is independent of the database management system used. On the other hand, physical data model is derived after the logical data model and it includes the structure of the database including the specification of tables, columns and key constraints. This model is different according to the database management system used.

Related posts:

不同ence Between DBMS and RDBMS 不同ence Between View and Materialized View 不同ence Between Triggers and Cursors 不同ence Between MySQL and MySQLi Extension 不同ence Between SQL Server and Oracle

Filed Under:DatabaseTagged With:logical and physical data model,逻辑和物理数据模型的差异,logical data model,logical data model definition,physical data model,physical data model definition

About the Author:Admin

Coming from Engineering cum Human Resource Development background, has over 10 years experience in content developmet and management.

Leave a ReplyCancel reply

Your email address will not be published.Required fields are marked*

Request Article

Featured Posts

不同ence Between Coronavirus and Cold Symptoms

不同ence Between Coronavirus and Cold Symptoms

不同ence Between Coronavirus and SARS

不同ence Between Coronavirus and SARS

不同ence Between Coronavirus and Influenza

不同ence Between Coronavirus and Influenza

不同ence Between Coronavirus and Covid 19

不同ence Between Coronavirus and Covid 19

You May Like

不同ence Between Stainless Steel and Carbon Steel

不同ence Between Stainless Steel and Carbon Steel

不同ence Between Physics and Metaphysics

不同ence Between ODBC and OLEDB

不同ence Between Lye and Caustic Soda

不同ence Between Lye and Caustic Soda

不同ence Between Apple iOS 8.3 and iOS 9

不同ence Between Apple iOS 8.3 and iOS 9

Latest Posts

  • What is the Difference Between Soil Air and Atmospheric Air
  • What is the Difference Between Hotplate and Induction Cooker
  • What is the Difference Between Steroids and Antibiotics
  • What is the Difference Between Gastritis and Pancreatitis
  • What is the Difference Between Normal Air and Nitrogen in Tires
  • What is the Difference Between Acne and Rosacea
  • Home
  • Vacancies
  • About
  • Request Article
  • Contact Us

Copyright © 2010-2018不同ence Between. All rights reserved.Terms of Useand Privacy Policy:Legal.