Activity | Credits | Period | Academic staff | Timetable |
---|---|---|---|---|
Teoria | 9 | II semestre, I semestre | Alberto Belussi | |
Laboratorio | 3 | II semestre | Alberto Belussi |
Theory I
-------
The first part of the course, called “Databases Theory”, has the aim to provide the student with the necessary concepts and methods for the design of a database and its applications. In particular, it will be focused on the methodologies for the conceptual and logical design of a database and for the successive database implementation on database systems. Moreover, some general techniques for the implementation of database systems will be presented and the fundamental characteristics of the query language SQL and of the relational algebra will be illustrated.
Theory II
-------
The second part of the course, called “Web and multimedia Applications”, has the aim to provide the student with the necessary concepts and methods for the design of data-intensive web applications. In particular, this module will be focused on a methodology for the logical design of a web application that interacts with a database system (DBMS).
Moreover, the approach Model-View-Controller (MVC-2 servlet centric) will be illustrated and applied to some examples. Finally, the main issues concerning the treatment of multimedia datasets in a DBMS will be presented.
LAB
-------
The “Lab” ("Laboratorio" in italian) of the course “Databases and WEB” has the aim to provide the student with the necessary concepts and methods for the implementation of a database and its applications. In particular, this module will be focused on the usage of a specific DBMS for the creation, management and manipulation of a database by means of SQL commands. Moreover, some general techniques for the implementation of web applications will be presented. In particular a MVC-2 architecture based on the Servlet and the Java Server Pages (JSP) technologies will be illustrated and used to show the implementation of some practical examples.
Theory I
-------
* Introduction to database managemente systems (DBMS): architectures and functionalities of a DBMS. Phisical and logical data independence. Data models. Concepts of model, schema and instance of a database. Languages for database systems. DBMS vs. file system.
* Conceptual database design: conceptual data models. The Entity-Relationship model (ER). Elements of the ER model: entities, attributes, relationships, ISA hierarchies and cardinality constraints.
* Logical database design: logical data models, the relational data model. Elements of the relational data models: relations and integrity constraints. Mapping between conceptual schemas in ER model and logical schema in the relational model. Languages for data definition: SQL as DDL. Table creation and integrity constraints definition in SQL.
* Interacting with a database system: languages for the definition, querying and update of a database. The relational algebra. SQL: select-from-where statement, join in SQL, the GROUP BY and ORDER BY clauses, using subqueries. SQL for update: INSERT, DELETE and UPDATE statements. Views.
* The internal architecture of a DBMS. Transactions. Transactions properties. The concurrency control: schedules, view and conflict equivalence, the two-phase locking. Access methods (indexes): primary and secondary indexes, B-+tree, hashing based access methods.
Theory II
-------
The module is organized in 16 hours of lessons and exercises carried out during the second semester. The module will focuses on the logical design of a data-intensive web application and its implementation using: Postgresql, Servlet and Java Server Pages (JSP) technologies. Moreover, the issues concerning the treatment of multimedia datasets in a DBMS will be presented.
In particolar, the following arguments will be illustrated:
* Web Server: basic internet, basic HTML (form), basic HTTP.
* Information systems on the Web: techniques for the interaction between a DBMS and a HTTP server (CGI, Servlet, JSP); JDBC library and Java data beans; the architecture proposed by the MVC-2 approach.
* a methodology for the logical design of a data-intesive web application.
* XML
* features of multimedia data: compression techniques and indexing
LAB
-------
1. Introduction to DBMS PostgreSQL: connection to a database, table creation, insert, update and alter table.
2. PostgreSQL: integrity constraints, reactions to contraints violations.
3. PostgreSQL: simple SQL queries.
4. PostgreSQL: complex SQL queries.
5. HTML: structure of an HTML document, main tags, tables.
6. HTML: form.
7. Servlet Engine on an application server. Examples of simple servlets.
8. Servlet and JDBC. Connection to a DBMS PostgreSQL. Simple servlet of the interaction with a DBMS.
9. Java bean e servlet.
10. Java Server Pages (JSP), PHP and other languages for web applications.
11. JSP and servlet: a software architecture based on the Model View Controller approach.
12. Servlet/JSP and multimedia datasets.
Written tests.
Activity | Author | Title | Publisher | Year | ISBN | Note |
Teoria | P. Atzeni, S. Ceri, P. Fraternali, S. Paraboschi, R. Torlone | Basi di dati. Architetture e linee di evoluzione | McGraw-Hill | 2003 | 88-386-603 | |
Teoria | P. ATZENI, S. CERI, S. PARABOSCHI, R. TORLONE | Basi di dati- Modelli e linguaggi di interrogazione (Edizione 3) | McGraw-Hill | 2009 | 9788838666001 | |
Teoria | E. Baralis, A. Belussi, G. Psaila | Basi di dati - Temi d'esame svolti (Edizione 1) | Progetto Leonardo Società Editrice Esculapio Bologna | 1999 | B135655713 |
Title | Format (Language, Size, Publication date) |
Algebra relazionale: ottimizzazione |
![]() |
Applicazioni Web: Data Beans |
![]() |
Applicazioni Web: esempio di servlet & JDBC |
![]() |
Applicazioni Web: introduzione e protocollo HTTP |
![]() |
Applicazioni Web: JDBC |
![]() |
Applicazioni Web: JSP |
![]() |
Applicazioni Web: metodologia (aggiornato) |
![]() |
Applicazioni Web: MVC-2 |
![]() |
Applicazioni Web: PHP cenni |
![]() |
Applicazioni Web: servlet |
![]() |
Concorrenza I |
![]() |
Concorrenza II |
![]() |
Dati multimediali: codifica di Huffman & LZW |
![]() |
Dati multimediali: introduzione |
![]() |
Dati multimediali: k-d-tree |
![]() |
Esercitazione sulla seconda prova intermedia |
![]() |
Introduzione |
![]() |
Progettazione logica |
![]() |
SQL-1 |
![]() |
SQL-2 |
![]() |
SQL-3 |
![]() |
Strategie per la progettazione concettuale |
![]() |
Strutture di accesso ai dati I |
![]() |
Strutture di accesso ai dati II |
![]() |
Transazioni |
![]() |
XML |
![]() |
XML: DTD |
![]() |
XML: esercizio |
![]() |
XMLSchema |
![]() |
Esercitazione 10: lucidi |
![]() |
Esercitazione 10: php.zip |
![]() |
Esercitazione 11: cos.jar |
![]() |
Esercitazione 11: esercizio |
![]() |
Esercitazione 11: lucidi |
![]() |
Esercitazione 11: photos.src |
![]() |
Esercitazione 11: photos.webapp |
![]() |
Esercitazione 1: esercizio |
![]() |
Esercitazione 1: lucidi |
![]() |
Esercitazione 2: esercizio |
![]() |
Esercitazione 2: lucidi |
![]() |
Esercitazione 3: esercizio |
![]() |
Esercitazione 3: lucidi |
![]() |
Esercitazione 4: esercizio |
![]() |
Esercitazione 4: lucidi |
![]() |
Esercitazione 5: esercizio |
![]() |
Esercitazione 5: lucidi |
![]() |
Esercitazione 6: esercizio |
![]() |
Esercitazione 6: lucidi |
![]() |
Esercitazione 6: tomcat |
![]() |
Esercitazione 7: esercizio |
![]() |
Esercitazione 7: lucidi |
![]() |
Esercitazione 7: servlet con bean |
![]() |
Esercitazione 7: servlet senza bean |
![]() |
Esercitazione 8: corsi.jsp |
![]() |
Esercitazione 8: esempiJSP |
![]() |
Esercitazione 8: esercizio |
![]() |
Esercitazione 8: lucidi |
![]() |
Esercitazione 9: daFare.jsp |
![]() |
Esercitazione 9: esercizio |
![]() |
Esercitazione 9: lucidi |
![]() |
Esercitazione 9: main.java |
![]() |