Add a table to the database view
-
- UpdatedJun 3, 2024
- 2 minutes to read
- Washington DC
- Table Administration
Specify the table to join to the database view.
Before you begin
Role required: admin.
About this task
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.
Procedure