BCA / B.Tech 9 min read

What is a Database Schema?

Database Schema in DBMS:

A Database Schema is the logical blueprint or structure of a database. It defines how data is organized, how the relations among them are associated, and the constraints that apply to the data. It does not show the data itself, but rather the plan for the data.

Types of Database Schema:
  1. Physical Schema: Describes the database design at the physical level, detailing how data is stored on a storage device (e.g., files, indexes).
  2. Logical Schema: Describes the database design at the logical level. It defines all the tables, their columns, data types, relationships, and constraints.
  3. View Schema (Subschema): Describes the user-level view of the database. It defines how a particular user or group of users sees the data, often hiding parts of the database for simplicity and security.

In data warehousing, schemas like Star Schema and Snowflake Schema are used to model data for analysis.