Changes between Initial Version and Version 1 of database


Ignore:
Timestamp:
Apr 5, 2007, 2:18:33 PM (17 years ago)
Author:
dwinter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • database

    v1 v1  
     1= Views =
     2
     3Die folgenden Views sind notwendig:
     4
     5{{{
     6create view title_mss as SELECT a.titleid, a.fulltitle, a.shorttitle, a.arabictitle, a.aunum, a.fulltitle_normal, m.city, m.library, m.collection, m.msnum,m.msid
     7   FROM titles a
     8   LEFT JOIN mss m ON a.titleid = m.titleid;
     9}}}
     10
     11{{{
     12create view author_title_mss as SELECT a.aunum, b.titleid, b.fulltitle, b.shorttitle, b.arabictitle, b.fulltitle_normal, b.city, b.library, b.collection, b.msnum,b.msid
     13   FROM authors a
     14   LEFT JOIN title_mss b ON a.aunum = b.aunum;
     15
     16}}}
     17{{{
     18create view alias_and_name as
     19 SELECT authors.aunum, authors.fullname, authors.fullname_normal
     20   FROM authors
     21UNION
     22 SELECT aliases.aunum, aliases.alias AS fullname, aliases.alias_normal AS fullname_normal
     23   FROM aliases;
     24}}}