Schema
Schema
Sub schema
It is the subset of the schema and inherits the same property that a schema has. It gives the
users a window through which he/she can view only that part of the database which he
wants.
For example − Student table in a database the programmer can access all fields of table,
but the user can access only two or three fields of it. Subschema describes both views of the
database.
Types of Schema
Schema is of three types, which are as follows −
View Schema − The design of a database at a view level is called view schema. This
schema generally shows the user interaction with the database system.
Logical Schema − The design of a database at the logical level is called a logical
schema. A database administrator (DBA) and the programmers used to work at this
level. This level describes all the entities, attributes and their relationship with the
integrity constraints.
Physical Schema − The design of a database at the physical level is called a
physical schema. This schema describes how the data is stored in the secondary
storage devices. There is only 1 logical and 1 physical schema per database and
more than 1 view schema.