Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create some simple example reports #1899

Closed
stellanl opened this issue Nov 11, 2015 · 2 comments
Closed

Create some simple example reports #1899

stellanl opened this issue Nov 11, 2015 · 2 comments
Assignees
Milestone

Comments

@stellanl
Copy link
Contributor

To make it easier to get started with RSR reports in BIRT, it is useful to have some that are less complex than the result framework one.

@lauraroverts
Copy link

See a first list of reports: akvo/akvo-product-design#127

@stellanl
Copy link
Contributor Author

Here are some sample queries.

Reports that lack photos:

select rsr_project.id, rsr_project.title
from rsr_project
where current_image is null or current_image = ''

Project and updates totals:

select
count (distinct rsr_project.id) as project_count,
count (distinct rsr_projectupdate.id) as update_count
from
rsr_project left join rsr_projectupdate on rsr_project.id = rsr_projectupdate.project_id

There is something strange about the DB connection from (at least) Report Designer.
The following query is perfectly fine in psql (the DB console) but fails from RD:

SELECT
(SELECT COUNT(DISTINCT id) FROM rsr_project) AS project_count,
(SELECT COUNT(DISTINCT id) FROM rsr_projectupdate) AS update_count

@KasperBrandt KasperBrandt assigned KasperBrandt and unassigned stellanl Dec 3, 2015
KasperBrandt added a commit that referenced this issue Dec 3, 2015
stellanl added a commit that referenced this issue Jan 11, 2016
[#1899]Update README with details on how rewriting was implemented.
@MichaelAkvo MichaelAkvo moved this to Done in RSR Dec 8, 2022
@MichaelAkvo MichaelAkvo added this to RSR Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants