Add a table to the database view
Specify the table to join to the database view.
Avant de commencer
Role required: admin.
Pourquoi et quand exécuter cette tâche
When you write the Where clause, add the field name to the Variable prefix of its table with an underscore. In the following example, mi_id refers to the id field in the Metric Instance [metric_instance] table (mi) and inc_sys_id refers to the sys_id field in the Incident [incident] table (inc).
- Database views cannot be created on tables that participate in table rotation.
- Use only lowercase characters in the Variable prefix. Using uppercase characters may prevent you from viewing the database view in a list.
To see an example of using left joins to create a view, see Example left join in creating a database view.
- =
- !=
- <
- <=
- >
- >=
- &&
- ||
There is no support for LIKE or CONTAINS conditions in the Where clause clause of a database view. Link tables based on the sys_id using the = operator to work with the full dataset when filtering lists, running glide queries, or running reports.