digital media technology week 13. exercise 5, week 11
TRANSCRIPT
![Page 1: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/1.jpg)
Digital Media Technology
Week 13
![Page 3: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/3.jpg)
Exercise 6, week 11
![Page 4: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/4.jpg)
CREATE TABLE TREASURE( TREASURE_ID INT (4) NOT NULL AUTO_INCREMENT,TITLE VARCHAR (150),CREATOR INT,LIBRARY CHAR(6), SUBJECT CHAR(3), YEAR INT (4),PRIMARY KEY (TREASURE_ID),FOREIGN KEY (CREATOR) REFERENCES CREATOR ON DELETE RESTRICT ON UPDATE CASCADE, FOREIGN KEY (LIBRARY) REFERENCES LIBRARY ON DELETE RESTRICT ON UPDATE CASCADE,FOREIGN KEY (SUBJECT) REFERENCES SUBJECT ON DELETE RESTRICT ON UPDATE CASCADE);
Structured Query Language
![Page 5: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/5.jpg)
INSERT INTO CREATOR VALUES ('1','Baudelaire','Charles','1821','1867','FR'), ('2','Mozart','Wolfgang Amadeus','1756','1791','AT'), ('3','Bruegel The Elder','Pieter','1525','1569','BE'), ('4','Sadler','William','1782','1839','IE'), ('5','Tiemann','Walter','1876','1951','DE'), ('6','Macchiavelli','Giacomo','1756','1811','IT'), ('7','Galilei','Galileo','1564','1642','IT'), ('8','Parker','Matthew','1504','1575','GB'), ('9','Wittel','Caspar van','1655','1736','NL'), ('10','Molyneux','Daniel','1568','1632','IE') ;
UPDATE CREATORSET NAME_LAST='Charles Pierre'WHERE PID= 1 ;
![Page 6: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/6.jpg)
DELETE DATABASE TREASURE ;
DROP TABLE CREATOR ;
![Page 7: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/7.jpg)
SELECT TITLE, YEARFROM TREASURE ;
TITLE YEAR
Sidereus Nuncius 1610
Requiem KV 626 1791
Rabbit Hunt, in the lower left Brueghel 1560.
1560
De antiquitate Britanicae Ecclesiae 1572
Vedute di Roma con scene di costume
1810
Corrected page proofs of 'Les Fleurs du mal'
1857
Vinegar Hill, charge of the 5th Dragoon Guards
1880
Poster of "Internationale Ausstellung für Buchgewerbe und Graphik"
1914
Fontana dei Fiumi a Piazza Navona 1734
![Page 8: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/8.jpg)
SELECT * FROM TREASURE ;
treasure_id title year creator library subject
1 Sidereus Nuncius 1610 7 7 SCI
2 Requiem KV 626 1791 2 1 MUS
3 Rabbit Hunt, in the lower left Brueghel 1560.
1560 3 3 ART
4 De antiquitate Britanicae Ecclesiae
1572 8 4 ART
5 Vedute di Roma con scene di costume
1810 6 6 HIS
6 Corrected page proofs of 'Les Fleurs du mal'
1857 1 2 HIS
7 Vinegar Hill, charge of the 5th Dragoon Guards
1880 4 5 HIS
8 Poster of "Internationale Ausstellung für Buchgewerbe und Graphik"
1914 5 8 ART
9 Fontana dei Fiumi a Piazza Navona
1734 9 6 ART
![Page 9: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/9.jpg)
SELECT TITLE, YEARFROM TREASUREORDER BY YEAR ;
TITLE YEAR
Rabbit Hunt, in the lower left Brueghel 1560.
1560
De antiquitate Britanicae Ecclesiae 1572
Sidereus Nuncius 1610
Fontana dei Fiumi a Piazza Navona 1734
Requiem KV 626 1791
Vedute di Roma con scene di costume
1810
Corrected page proofs of 'Les Fleurs du mal'
1857
Vinegar Hill, charge of the 5th Dragoon Guards
1880
Poster of "Internationale Ausstellung für Buchgewerbe und Graphik"
1914
![Page 10: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/10.jpg)
SELECT TITLE, YEARFROM TREASUREWHERE YEAR > 1800 ;
TITLE YEAR
Vedute di Roma con scene di costume
1810
Corrected page proofs of 'Les Fleurs du mal'
1857
Vinegar Hill, charge of the 5th Dragoon Guards
1880
Poster of "Internationale Ausstellung für Buchgewerbe und Graphik"
1914
![Page 11: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/11.jpg)
Functions
□ COUNT ( ) ;
□ SUM ( ) ;
□ AVG ( ) ;
□ MIN ( ) ;
□ MAX ( ) ;
![Page 12: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/12.jpg)
SELECT COUNT(*)
FROM TREASURE ;
9
![Page 13: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/13.jpg)
SELECT COUNTRY_BORN, COUNT(*)
FROM CREATOR
GROUP BY COUNTRY_BORN ;
COUNTRY_BORN
AT 1
BE 1
DE 1
FR 1
GB 1
IE 2
IT 2
NL 1
![Page 14: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/14.jpg)
1
1
1
1
creator_id
name_last name_firstyear_of_birth
year_of_death
country_born
2 Mozart Wolfgang Amadeus
1756 1791 AT
3 Bruegel The Elder
Pieter 1525 1569 BE
5 Tiemann Walter 1876 1951 DE
1 Baudelaire Charles 1821 1867 FR
8 Parker Matthew 1504 1575 GB
4 Sadler William 1782 1839 IE
10 Molyneux Daniel 1568 1632 IE
6 Macchiavelli Giacomo 1756 1811 IT
7 Galilei Galileo 1564 1642 IT
9 Wittel Caspar van 1655 1736 NL
1111
2
21
![Page 15: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/15.jpg)
COUNTRY_BORN
ie 2
it 2
SELECT COUNTRY_BORN, COUNT(*)
FROM CREATOR
GROUP BY COUNTRY_BORN
HAVING COUNT(*) >= 2 ;
![Page 16: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/16.jpg)
Joining tables
SELECT NAME_FIRST, NAME_LAST, TITLE
FROM TREASURE, CREATOR
WHERE CREATOR = CREATOR_ID ;
![Page 17: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/17.jpg)
NAME_FIRST NAME_LAST TITLE
Charles Charles Corrected page proofs of 'Les Fleurs du mal'
Wolfgang Amadeus
Wolfgang Amadeus
Requiem KV 626
Pieter Pieter Rabbit Hunt, in the lower left Brueghel 1560.
William William Vinegar Hill, charge of the 5th Dragoon Guards
Walter Walter Poster of "Internationale Ausstellung für Buchgewerbe und Graphik"
Giacomo Giacomo Vedute di Roma con scene di costume
Galileo Galileo Sidereus Nuncius
Matthew Matthew De antiquitate Britanicae Ecclesiae
Caspar van Caspar van Fontana dei Fiumi a Piazza Navona
![Page 19: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/19.jpg)
HTML
PHP
http
SQL
SERVER
CLIENT
HTMLdb
![Page 20: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/20.jpg)
![Page 21: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/21.jpg)
Digital Media Technology
□ Many topics: XML, XHTML, CSS, TEI, XSLT, XPath, PHP, ERD, SQL
□ Framework / General principles
□ Way of thinking□ Lifecycle of digital objects
![Page 22: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/22.jpg)
Digital Humanities
![Page 23: Digital Media Technology Week 13. Exercise 5, week 11](https://reader036.vdocument.in/reader036/viewer/2022062318/551b1eea5503462e578b61e5/html5/thumbnails/23.jpg)
</dmt>