#### Queries

The Catalog Doctor can be used to diagnose queries in the following aspects:

- Finding all the queries in the catalog
  Expand the Queries node. All the queries will be listed in the resources tree.
- Finding the tables/views selected in a query
  Select a query and expand it. All the tables/views will be listed.
- Finding the DBFields selected from a table/view in a query
  Select a query and expand it, then click on a table/view and expand it. All the DBFields in the table or view will be listed.
- Finding the formulas or computed columns selected in a query
  Formulas and computed columns are listed before mapping tables/views.
- Editing a query
  Select the query that is to be edited, and click the Edit button in the Error panel (or right-click the query, and select Edit Query from the shortcut menu).
- Deleting queries, DBFields, formulas, computed columns and a table/view selected in a query
  To delete the object, you can use one of the following methods:
  - Select an object from the resources tree, right-click and on the shortcut menu click Delete.
  - Click the Delete button on the toolbar after selecting the object.
  - Select the object and press Delete on your keyboard.
- Saving a query as a cached query result
  Select the query that is to be saved as a cached query result, and click Run (or right-click a query, and on the shortcut menu, click Create Cached Query Result).