sql.entity.relation.generic: Relationship matching SQL query

Description Usage Details

Description

The query is constructed on 3 different levels (nested queries):

Usage

1
2
sql.entity.relation.generic(query1, query1.colname, query1.countname = "cnt",
  query2, query2.colname, query2.countname = "cnt")

Details

The purpose of Level 1 query is to perform simple counting of distinct values in both columns resulting in the following table:

The purpose of Level 2 query is to perform simple processing of Level 1 query and dropping actual dictionary values, which results in the following table (described only in part concerning column1 - the part concerning column2 is symmetrical) consisting of 8 columns:

The purpose of Level 3 query is to aggregate results of Level 2 query into single row of the following structure:


cezden/rpostgrexplorer documentation built on May 13, 2019, 3:08 p.m.