Join data across multiple tables
Learn how to construct your query by joining data across multiple tables:
Deleted records are not included by default in Data Query Live queries. You can always filter deleted records using WHERE clause in Data Query Live. Note that you must add
deleted
in the SELECT clause as a selected column if you use the
deleted
column in the WHERE clause. For example:
-
The deleted records can be specifically found by querying against the
deleted
column in appropriate tables with the following syntax: SELECT name, deleted FROM Account, Subscription WHERE Account.deleted = TRUE -
The deleted records can be filtered out with the following syntax: SELECT name, deleted FROM Account WHERE deleted = FALSE
Note that Data Query is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through Data Query.