Project

General

Profile

1
CREATE OR REPLACE VIEW temp_compliances AS
2
	SELECT
3
		a.id                 AS api,
4
		a.compatibilityclass AS compliance
5
	FROM
6
		api a
7
	WHERE
8
		a.id NOT IN (SELECT api
9
		             FROM apicollections
10
		             WHERE param = 'overriding_compliance')
11
	UNION SELECT
12
		      a.id        AS api,
13
		      ac.original AS compliance
14
	      FROM
15
		      api a LEFT OUTER JOIN apicollections ac ON (ac.api = a.id)
16
	      WHERE
17
		      ac.param = 'overriding_compliance';
(1-1/9)