You can create attributes in:
To create an attribute on the Workspace
Right-click an entity on the Workspace and select Add | Attribute. The Attribute Properties dialog opens.
![]()
Note: Select the Primary Key (Unique) checkbox to set the attribute as PK or unique attribute.
To create an attribute in the Entity Properties form
Entity Properties attribute columns
Column/Option Description Key
Graphical representation of keys of a particular attribute
Caption
Logical attribute name
Name Physical attribute name
Data Type
Data Type of an attribute
![]()
TIP: You can set a default data type for newly created attributes. See Settings Menu | Options | Physical Model | *database platform and version* | Default Data Type combo-box. (The selected data type will be also applied to Dictionary Types and Domains.)
p1
Parameter 1. Only some of the available data types have this parameter. Defines properties of the selected data type, e.g. length in case of the Char data type.
p2
Parameter 2. Only some of the available data types have two parameters. E.g. the Decimal data type has two parameters, which define precision and scale.
Not Null
When checked, the attribute cannot be empty.
Comments
Comments or descriptions related to the attribute
Status
Shows status of attributes in grid. Status of Items in Grids
Buttons:
- opens the Application Variables form
Smaller Add button- adds new attributes quickly, just enter attribute name and then click Add.
Bigger Add button - adds an attribute
Edit - opens Attribute Properties of the selected entity
Delete - deletes the selected attribute
- moves the selected attribute up or down in the list
To create another attribute in the Attribute Properties form
Click OK+Add.
To create an attribute in Model Explorer
Unfold the Entities folder | Unfold the specific entity folder | Right-click the Attributes folder | Add Attribute.
An entity can have a primary key and many alternate keys. The keys are stored in the Keys tab in the Entity Properties form.
To create a key
To create a PK (unique) attribute
To assign an attribute to key
or
|
Note:
|
Toad Data Modeler allows you to check/uncheck the NotNull property for PK and AK attributes.This is possible only if the Allow Null Attributes in Keys checkbox is selected (unchecked by default).
To select this checkbox
Select Settings | Options | Physical Model and select the checkbox.
If this checkbox is not selected, Toad Data Modeler doesn’t allow you to uncheck the NotNull checkbox in key attributes.
The availability of this option differs by database:
Database | Allow NULL in PK | Allow NULL in AK |
---|---|---|
DB2 z/OS v. 9, 10, 11 | n/a | n/a |
DB2 v. 8, 9.x, 10.x | n/a | n/a |
Greenplum | n/a | available |
Ingres 9.3, 10 | n/a | n/a |
Microsoft Access | available | available |
Microsoft Azure SQL Database | n/a | available |
SQL Server 2000 | n/a | n/a |
SQL Server 2005 | n/a | available |
SQL Server 2008 | n/a | available |
SQL Server 2012 | n/a | available |
SQL Server 2014 | n/a | available |
MySQL 5.x | n/a | available |
Oracle | available | available |
PostgreSQL | n/a | available |
SQLite 3.7 | available | available |
Sybase ASE, Sybase IQ | n/a | n/a |
Sybase SQL Anywhere | n/a | n/a |
Teradata | n/a | n/a |
If the Allow Null Attributes in Keys checkbox is selected:
See Synchronization of NotNull and Mandatory Parent for more information.
Identifying relationship (also CTRL+R)
Non-identifying relationship
M:N relationship
|
TIP: Hide relationship names:
|
To create self-relationship for non-identifying relationship
|
TIP: Before you create a self-relationship, select Settings | Options | Physical Model | Self Relation Attribute Name/Caption and define a name for propagated attributes there (e.g. via prefix, suffix, application variable.) |
To add multiple relationships
One-to-many relationship is represented by this symbol:
One-to-one relationship is represented by this symbol:
Parent: mandatory Child: mandatory
Parent: mandatory Child: optional
Parent: optional Child: mandatory
Parent: optional Child: optional
,
,
zero, one or more
one or more
zero or one
Parent: mandatory Child: mandatory
Parent: mandatory Child: optional
Parent: optional Child: mandatory
Parent: optional Child: optional
See Synchronization of Not Null and Mandatory Parent for more information.
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy