Professional Documents
Culture Documents
Ques : 2
Answer:
A schema diagram is a diagram which contains entities and the attributes that
will define that schema.
A schema diagram only shows us the database design. It does not show the
actual data of the database. Schema can be a single table or it can have more
than one table which is related.
When constructing the backend of an application, you need to take into account
how the frontend will talk to the backend. More important, however, is the
construction and design of your database. The relationships your data forms will
lead to the construction of your database schema.
When it comes to choosing your database, one of the things you have to think
about is the shape of your data, what model it will follow, and how the
relationships formed will help us as we develop a schema.
The size and complexity of your database schema depends on the size of your
project. The visual style of a database schema allows programmers to structure
the database and its relationships properly before jumping into the code. The
process of planning a database design is called data modeling.
We use the statement CREATE SCHEMA to get started. Note that PostgreSQL will
automatically create a public schema. Every new object will be placed here.
To create objects in a database schema, we write a qualified name that includes
the name of the schema and the name of the table: