Views that inherit a table and syntax in PostgreSQL I am getting a syntax error but don't understand what is wrong. 

I am using a reference here. 

This is my sql-snippet:

CREATE OR REPLACE VIEW stipa_test.stipa_view
AS 
  (
    SELECT *
    FROM ...
    WHERE ...
  )
INHERITS (stipa_test.stipa_type_proj);


I hope you get the idea, everything but inheritance works. So how could it look like? both the subquery view and the type_proj table
Views cannot inherit.

Only tables can.

Aside: the query for CREATE VIEW does not need parentheses. And your whole SELECT is needlessly convoluted and buggy. Untangled and without the invalid INHERITS clause:

CREATE OR REPLACE VIEW stipa_test.stipa_view AS 
SELECT aar.gid AS aar_gid, aar.geom AS aar_geom 
     , aar_korr.gid AS aar_korr_gid, aar_korr.geom AS aar_korr_geom 
FROM   stipa_test.stipa_type_aar  aar
JOIN   stipa_test.stipa_type_aar_korr aar_korr
                   ON ST_Within(aar.geom, ST_Buffer(aar_korr.geom, 3))
-- and 'aar_korr.dato' &gt; 'dato.aar'  -- nonsense, always FALSE