CREATE VIEW Relation AS
SELECT
  UUID,
  DI001202,
  DI001203,
  DI001204,
  DI001200,
  DI001201,
  DI007348,
  DI001206,
  DI001216,
  DI001497,
  DI001498,
  DI009342,
  DI001489,
  DI001057,
  /* FOREIGN KEYS */
  (SELECT UUID FROM DT461 WHERE DT461.DI001001 = DT465.DI001202) "projectUUID",
  (SELECT UUID FROM DT463 WHERE DT463.DI001097 = DT465.DI001202 AND DT463.DI001098 = DT465.DI001203) "activityPredecessorUUID",
  (SELECT UUID FROM DT463 WHERE DT463.DI001097 = DT465.DI001200 AND DT463.DI001098 = DT465.DI001201) "activitySuccessorUUID"
FROM DT465