Skip to content

Commit

Permalink
Add result row how to
Browse files Browse the repository at this point in the history
  • Loading branch information
furti committed Jan 23, 2019
1 parent 6904570 commit 75a59ee
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Documentation/Howto/General/add_result_row_in_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to add a Result Row for a Statement

Lets say we want a list of rooms in our house and the total amount of living area. To do so we add the following statement to the report and check ```Skip empty rows after Statement```.

```sql
Select Label, Area
From document
Where IfcRole = 'Space'
```

Next add the following statement and check ```Skip Column Names``` and ```Print Result in Bold```

```sql
Select 'Total', Sum(Area)
From document
Where IfcRole = 'Space'
```

And you will get a Result like this:

![Result](./add_result_row_in_report_result.png)

There is no empty space between the two statements, the column names for the second statement is not printed and the second statement is printed in bold. A perfect result row.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ Check this section for a list of common sql queries.
more...
</summary>

### General

[... add a Result Row for a Statement](./Documentation/Howto/General/add_result_row_in_report.md)

### Architecture
[... get a list of arch objects by role](./Documentation/Howto/Arch/get_number_of_objects_by_role.md)

Expand Down

0 comments on commit 75a59ee

Please sign in to comment.