Computer Science
Answer
An ideal DDL should perform the following functions :
- It should identify the types of data division such as data item, segment, record and data-base file.
- It should give a unique name to each data-item-type, record-type, file-type, database and other data subdivision.
- It should specify the proper data types.
- It should specify how the record types are related to make structures.
- It may define the type of encoding the program uses in the data items (binary, character, bit, string etc.). This should not be confused with the encoding employed in physical representation.
- It may define the length of the data items.
- It may define the range of values that a data-item can assume.
- It may specify means of checking for errors in the data.
- It may specify privacy locks for preventing unauthorized reading or modification of the data.
- A logical data definition should not specify addressing, indexing or searching techniques or specify the placement of data on the storage units, because these topics are in the domain of physical, not logical, organization.