A Data Dictionary comprises two words i.e. Data which simply means information being collected through some sources and Dictionary means where this information is available.
A Data Dictionary can be defined as a collection of information on all data elements or contents of databases such as data types, and text descriptions of the system. It makes it easier for users and analysts to use data as well as understand and have common knowledge about inputs, outputs, components of a database, and intermediate calculations.
There is less information and details provided by data models. So, a data dictionary is essential and needed to have proper knowledge and usage of contents. Data Dictionary provides all information about names that are used in system models. Data Dictionary also provides information about entities, relationships, and attributes that are present in the system model. As a part of the structured analysis and design tool, the implementation of a data dictionary is done.
The following data name type of Information is used to store in a data dictionary:
Name | Description |
---|---|
Name | Name generally includes the primary name of all composite data or control items available, and the name of the external entity or data store. |
Aliases | Any other word used in place of Name |
Where or How it’s used? | A data dictionary generally gives information about where and how data or control items are used which may include an input/ output to process. |
Description | A notation for representing content |
Data Dictionary is basically of two types. We will discuss each of them.
Integrated Data Dictionary can be seen as a catalog that can be maintained by the relational database. In previous databases, there is not any functionality of Integrated Data Dictionary, so they use Stand Alone Data Dictionary.
There are two types of Integrated Data Dictionary.
Stand Alone Data Dictionary is a type of flexible data dictionary as Database Administrator has ease of managing data. It does not require data that is computer-based. It has no fixed format. But some elements are common in this kind of database.
Data Dictionary can be formed with the help of the following relational database like MySQL , SQL Server, etc. Several notations are present everywhere which enhances the quality of the Data Dictionary. We will also look into that. Database Administrators can have the following templates like SQL Server, that help in making Data Dictionary.
Data Construct | Notation | Meaning |
---|---|---|
Composition | = | Is composed of |
Sequence | + | Represents AND |
Selection | [ |] | Represents OR |
Repetition | < >n | Represents n repetitions or repetition for n times |
Parentheses | ( ) | Optional data that may or may not be present |
Comment | *…* | Delimits a comment or commented information |
Example: Let us understand this by taking an example of the reservation system. In the reservation system, “ passenger ” is a data item whose information is available on the data dictionary as follows:
Answer:
Data Dictionary is simply a collection of definitions, data elements, or database contents like data types, attributes , etc.
Answer:
Data Dictionary is also called a Metadata Repository in DBMS.
Answer:
The main advantage of a Data Dictionary is that it helps faster/easier detection of data anomalies. It also provides transparency in the data.