Answer:
Hi Sevanah! Below are the five main differences between a type declarative language and a data definition language:
A data definition language:
1. define data structure
2. define the column attributes of a table
3. no further classifications
4. The basic commands in a Data Definition language are CREATE, DROP, RENAME, ALTER
5. Scope of variables in data definition languages is limited
A type declarative language:
1. manipulate the data itself
2. uses functions to add and update the rows of a table
3. further classified into procedural and non-procedural languages
4. The basic commands are INSERT, UPDATE and MERGE
5. Scope of variables in type declarative languages is varied
Explanation:
A data definition language is used to define data structures. It makes use of statements such as create table, alter table to create and alter the database schema to allow it to hold rows of information. A type declarative language such as Java or C is used to manipulate the data itself. For example, insert, update and deletion of rows to the database. Whereas data definition languages define the column attributes of a table, a type declaration language uses functions to add and update the rows of a table. A data definition language does not have any further classification, however a type declarative language can be further classified into procedural and non-procedural languages. The basic commands in a Data Definition language are CREATE, DROP, RENAME, ALTER, whereas the basic commands in a type declarative language are INSERT, UPDATE and MERGE. There is little of no scope of variables in a data definition language, whereas the scope of variables in type declarative languages is varied