Physical Design Of Database Examples
Projects have many employees.
Physical design of database examples. Data model structure helps to define the relational tables primary and foreign keys and stored procedures. Physical database design changes in two ways. In the logical database design you show this relationship as a many to many relationship between project and employee. To resolve this relationship you create a new associative table employee project.
Physical design is the time when you abbreviate the names that you chose during logical design. Physical database design it is the process of transforming a logical data model into a physical model of a database. In db2 for z os you need to abbreviate column names and table names to fit the physical constraint of a 30 byte maximum for column names and a 128 byte maximum for table names. In a sense logical design is what you draw with a pencil before building your warehouse and physical design is when you create the database with sql statements.
For example you can abbreviate the column name that identifies employees employee number to empno. First instead of having to make all the right physical design decisions upfront many can be postponed. During the physical design process you convert the data gathered during the logical design phase into a description of the. For example if a report is too slow a cache can be defined.
Unlike a logical design a physical database design is optimized for data access paths performance requirements and other constraints of the target environment i e. Moving from logical to physical design. Impact 5 physical database design decisions can be postponed.