SQL-CREATE-VIEW creates SQL tables that are read-only, called VIEW tables, while SQL-CREATE-TABLE creates one or more SQL tables from an existing D3 file that are read/write, called BASE tables. Thus, the underlying D3 file can be modified through SQL statements. Existing items can be modified or deleted and new items can be inserted.
The SQL-CREATE-VIEW/TABLE commands create the SQL tables needed to access flat attributes as well as MultiValue attributes contained in controlling/dependent sets. Each controlling/dependent set becomes a nested SQL table. The advanced syntax for these commands is useful if MultiValue or multi-subvalue relationships exist in a D3 file and these relationships are not fully defined by controlling/dependent dictionary structures. The advanced syntax allows you to define these relationships at the TCL command line.
These TCL commands share identical syntax. Both a basic and a more advanced syntax are described.