Now we can create static and dynamic both kind of schema relational table so a new kind of heterogeneous data structure can be created in Relational tables. Relational database that is much more concerned with standards compliance and extensible than with giving you freedom over how you store data. It uses both dynamic and static schema and allows you to use it for relational data and normalized form storage. Static Relation data structure in Postgres CREATE TABLE Project ( id serial PRIMARY KEY, name varchar, mgr integer, is_active boolean ); CREATE TABLE Task( id serial PRIMARY KEY, name varchar, status boolean, project_id integer, CONSTRAINT idx_project_id FOREIGN KEY (project_id) REFERENCES project (id) ); Dynamic Relation data structure in Postgres CREATE TABLE IF NOT EXISTS project ( id serial PRIMARY KEY, name varchar, mgr integer, tasks jsonb , is_active boolean ); Keeping JSON Document inside Postgres Table INSERT INTO project VALUES (1,'Young
Connecting, Sharing and Discovering