Datadictionary OpenWave 3.1.34
Previous topic Chapter index Next topic

View: vwhhstringadvin

 

 

Schema

public

 

Owner

waveuser005

 

Descriptions

There is no description for view vwhhstringadvin

 

Columns

Name

Data type

Description

dnkeyhandhavingen

integer

 

dvadviesin

text

 

 

Rules

Name

Event

Instead

Condition

Description

_RETURN

SELECT

 

 

 

Indices

There are no indices for table vwhhstringadvin

 

Definition

CREATE VIEW public.vwhhstringadvin (
   dnkeyhandhavingen,
   dvadviesin)
AS
WITH
const AS (
SELECT tbinitialisatie.d1logic AS val1
FROM tbinitialisatie
WHERE lower(tbinitialisatie.dvsectie::text) = 'adviezen'::text AND
   lower(tbinitialisatie.dvitem::text) = 'retourisgeleverd'::text
       )
   SELECT dnkeyhandhavingen,
   string_agg(dvcodeadviesinstanties::text ||
       CASE
           WHEN
dvadvgeverpositief = 'T'::bpchar THEN '(+)'::text
           WHEN dvadvgeverpositief = 'F'::bpchar THEN '(-)'::text
           ELSE '(?)'::text
       END, ''::text) AS dvadviesin
   FROM tbadviezen
   WHERE dnkeyhandhavingen IS NOT NULL AND
       CASE
           WHEN
((
       SELECT const.val1
       FROM const
       )) = 'F'::bpchar THEN ddadviesdatum IS NOT NULL
           ELSE
dddateringadvies IS NOT NULL
       END AND
ddvervallen IS NULL
   GROUP BY
dnkeyhandhavingen;

This file was generated with SQL Manager for PostgreSQL (www.sqlmanager.net/products/postgresql/manager) at 18/05/2026 15:10
Previous topic Chapter index Next topic