Guest User

Untitled

a guest
Mar 13th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  SELECT DISTINCT kind.child AS kind, vetter.child AS kuseng
  2.    FROM windsor.parents kind, windsor.parents eltern, windsor.parents geschwister, windsor.parents vetter, windsor.royals
  3.   WHERE eltern.father::text = geschwister.father::text AND kind.father::text <> vetter.father::text AND (kind.father::text = eltern.child::text OR kind.mother::text = eltern.child::text) AND (vetter.father::text = geschwister.child::text OR vetter.mother::text = geschwister.child::text) AND vetter.child::text = royals.name::text AND royals.sex = 'm'::bpchar
  4.   ORDER BY kind.child;
  5.  
  6.  
  7.  
  8.  
  9. CREATE VIEW AlterAnzahl AS SELECT AVG(2011-royals.born) AS Durchschnittsalter, count(royals) AS Anzahl
  10. FROM windsor.royals
  11. WHERE royals.died IS NULL
Add Comment
Please, Sign In to add comment