Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Data Model and Database Schema in DBMS?

Tags:

database

I know the Data Model is basically two types ER-Model and Relational Model & Database schema is also two type Physical and logical.

But I can not understand what is the difference between them based on their operation in DBMS?

like image 503
Aditya Avatar asked Aug 02 '14 09:08

Aditya


People also ask

Is database schema a data model?

Database schema is a physical implementation of data model in a specific database management system. It includes all implementation details such as data types, constraints, foreign or primary keys.

What are schemas and models?

A schema is a collection of database objects, including tables, views, indexes, and synonyms. There is a variety of ways of arranging schema objects in the schema models designed for data warehousing. One data warehouse schema model is a star schema.

What is data model and database model?

A database model is a type of data model that determines the logical structure of a database. It fundamentally determines in which manner data can be stored, organized and manipulated. The most popular example of a database model is the relational model, which uses a table-based format.

What are the 3 types of database schema?

Schema is of three types: Logical Schema, Physical Schema and view Schema.


1 Answers

A schema is a blueprint of the database which specifies what fields will be present and what would be their types. For example an employee table will have an employee_ID column represented by a string of 10 digits and an employee_Name column with a string of 45 characters.

Data model is a high level design which decides what can be present in the schema. It provides a database user with a conceptual framework in which we specify the database requirements of the database user and the structure of the database to fulfill these requirements.

A data model can, for example, be a relational model where the data will be organised in tables whereas the schema for this model would be the set of attributes and their corresponding domains.

References: Understanding the schema and Database System Concepts (H Korth and A Silberschatz)

like image 116
richik jaiswal Avatar answered Sep 20 '22 16:09

richik jaiswal