Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how how to show all table rows when using a query within a query by using nested query with the SQL for Confluence app.

Instructions

...

For this purpose, the inner query must use a join such that it provides data to

...

the outer query.

...

The query given here is an example; thus, use relevant fields and tables to get the required details from your database.

  1. Log into your Confluence instance, and create or edit a page.
  2. Enter {sql and select the SQL Query macro, or, search for the macro name and select it. 
  3. Edit the macro, and, select Output format as Wiki and enter the following code:

    Image Added

The output of the above query is as

...

follows:
Image Modified