money.open_usr_summary (view)
|
This is a database view, not a base table. It has no triggers, indexes, or FK constraints of its own. Querying this view may be more efficient than joining the underlying tables directly. |
Columns
| Column | Type | Nullable | Notes |
|---|---|---|---|
usr |
|
Yes |
|
total_paid |
|
Yes |
|
total_owed |
|
Yes |
|
balance_owed |
|
Yes |
View Definition
SELECT materialized_billable_xact_summary.usr,
sum(materialized_billable_xact_summary.total_paid) AS total_paid,
sum(materialized_billable_xact_summary.total_owed) AS total_owed,
sum(materialized_billable_xact_summary.balance_owed) AS balance_owed
FROM money.materialized_billable_xact_summary
WHERE materialized_billable_xact_summary.xact_finish IS NULL
GROUP BY materialized_billable_xact_summary.usr;