Find your way around
Open Prism. The workspace has:- Queries — start a new query, reopen a saved query, see schedules, or return to a recent run.
- Schema — search the tables and columns available to query.
- Templates — choose a ready-made starting point for a common report.
- Editor — view and change the SQL.
- Ask assistant to edit this query — describe a change in plain English.
- Results — inspect the answer as a table or chart.
Run your first query
The easiest first query is a template:- Open the Templates tab.
- Search for Vacant units and click the template.
- Read the SQL that appears in the editor.
- Click Run, or press ⌘ ↵ (Control Enter on Windows).
- Check the returned rows in Table.
- Ask the SQL assistant to make a small change, such as Show the default rent in pounds and put the highest rent first.
- Click Run again and check the new result.
Create a query from a question
To build a query without a template, follow these steps:- Click New.
- In Ask assistant to edit this query, describe the result you need.
- Press Enter.
- Check the generated SQL and explanation.
- Click Run.
- Check the filters, dates, amounts, and row count in the result.
- Ask for one change at a time until the result is right.
The SQL assistant changes the editor but does not run the query. You remain in control of when the query runs.
Run options
Click Run for the normal result. Open the menu next to Run for:- Run with 1,000 row limit — useful while testing a broad query.
- Run with 100,000 row limit — requests a larger result, although the editor still displays no more than 10,000 rows.
- Download full result — appears when a full-result file is available.
Read the result
The result bar shows:- The number of rows returned.
- truncated when more rows matched than the editor can show.
- How long the query took.
- Data as of, so you know how recent the data is.
null means that detail was empty or not available on that record.
Use Chart when the result contains at least one number column. Then choose:
- Bar or Line for the chart type.
- X axis for the labels along the bottom.
- Values for one or more number columns to plot.
Download a CSV
Click CSV to download the rows currently available in the editor. The file uses the query title as its name. The editor displays at most 10,000 rows. On Premium, Full result appears when Prism has prepared the complete result for a truncated query. Use this when you need rows beyond the editor limit. Before sharing a CSV, check that it contains only the personal and financial information the recipient needs.Name, format, and save
- Click the query title or pencil to replace Untitled query with a clear name.
- Click Format to tidy the SQL without changing what it asks for.
- Click Save to keep a named query, or Save changes after editing one.
- Open Run history to return to a recent query.
Fix a query that failed
If a query cannot run, Prism shows the error under This query couldn’t run. To fix it, follow these steps:- Read the error if it is clear, such as a misspelt column name.
- Click Fix error or Fix with assistant to send the SQL and error to the SQL assistant.
- Review the changed SQL.
- Click Run again.
Query across accounts
In organisation view, open Prism. Use Query scope in the header to choose where the query runs:- All accounts — every account in the organisation that has Prism enabled.
- Groups — the Prism-enabled accounts in that group.
- Accounts — tick the accounts you want.
account_id. Ask the SQL assistant to include or group by account when you need to tell the results apart. Changing Query scope clears the previous result so you do not mistake it for the new selection.
The Yorlet Assistant runs a Prism query for the account you are currently using. Use the organisation Prism editor
when you need a cross-account query.
What you can write
Use a singleSELECT (or WITH … SELECT). Prism will not run statements that change data or attach other databases.
Use Tenancies for rent roll and occupancy. Use Applications for the leasing pipeline.
If the result does not look right
- No rows — make the date range wider, check the status filter, and confirm Data as of.
- Too many rows — add a date, status, Building, or account filter.
- Duplicate-looking rows — a query may be joining one record to several related records. Ask the SQL assistant to explain the join and return one row per record.
- Amounts look 100 times too large — ask for pounds rather than pence.
- The chart is unavailable — make sure the result includes a number column.
- The chart is crowded — group the data into fewer rows, such as one row per month or Building.
- The query times out — test a shorter date range or fewer columns, then widen it gradually.
- Recent changes are missing — check Data as of; the snapshot may not have refreshed yet.