Databases (2009/2010)

Course code
4S00037
Credits
12
Coordinator
Alberto Belussi
Other available courses
Other available courses
Other available courses
    Academic sector
    INF/01 - INFORMATICS
    Language of instruction
    Italian
    Teaching is organised as follows:
    Activity Credits Period Academic staff Timetable
    Teoria 9 1st Semester, 2nd Semester Alberto Belussi
    Laboratorio 3 2nd Semester Alberto Belussi

    Lesson timetable

    1st Semester
    Activity Day Time Type Place Note
    Teoria Monday 11:30 AM - 1:30 PM lesson Lecture Hall B  
    Teoria Tuesday 11:30 AM - 1:30 PM lesson Lecture Hall A  
    2nd Semester
    Activity Day Time Type Place Note
    Teoria Monday 11:30 AM - 1:30 PM lesson Lecture Hall A  
    Teoria Tuesday 11:30 AM - 1:30 PM lesson Lecture Hall B  
    Laboratorio Tuesday 3:30 PM - 6:30 PM laboratorio Laboratory Alfa  

    Learning outcomes

    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.

    Syllabus

    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)
    11. JSP and servlet: a software architecture base on the Model View Controller approach.
    12. Servlet/JSP and multimedia datasets.

    Assessment methods and criteria

    Module:
    -------

    Reference books
    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
    Teaching aids
    Title Format (Language, Size, Publication date)
    Alcuni temi d'esame  zipzip (it, 396 KB, 03/11/09)
    Applicazioni Web centrate sui dati  pdfpdf (it, 322 KB, 22/03/10)
    B+-tree e hashing  pdfpdf (it, 464 KB, 22/03/10)
    Codifica JPEG  pdfpdf (it, 2078 KB, 17/05/10)
    Codifiche lossless  pdfpdf (it, 249 KB, 27/04/10)
    Dispensa sulle applicazioni web centrate sui dati  pdfpdf (it, 276 KB, 09/04/10)
    DTD  pdfpdf (it, 203 KB, 26/04/10)
    Esempio di esercizio su XML  pdfpdf (it, 59 KB, 26/04/10)
    Esercizio XML: soluzione  pdfpdf (it, 56 KB, 27/04/10)
    Java Data Beans  pdfpdf (it, 486 KB, 30/03/10)
    JDBC  pdfpdf (it, 175 KB, 29/03/10)
    JSP  pdfpdf (it, 451 KB, 13/04/10)
    k-d-tree  pdfpdf (it, 298 KB, 18/05/10)
    Lucidi introduttivi  pdfpdf (it, 1974 KB, 06/10/09)
    Metodologia di progettazione applicazioni web  pdfpdf (it, 156 KB, 30/03/10)
    MVC  pdfpdf (it, 278 KB, 19/04/10)
    Servlet  pdfpdf (it, 178 KB, 23/03/10)
    ServletHelloWWW  pdfpdf (it, 62 KB, 29/03/10)
    Tecniche di compressione  pdfpdf (it, 266 KB, 04/05/10)
    XML  pdfpdf (it, 797 KB, 19/04/10)
    XML Schema  pdfpdf (it, 881 KB, 20/04/10)
    Esercitazione 10: esercizio  pdfpdf (it, 65 KB, 25/05/10)
    Esercitazione 10: libreria cos.jar  octet-streamoctet-stream (it, 55 KB, 25/05/10)
    Esercitazione 10: lucidi  pdfpdf (it, 681 KB, 25/05/10)
    Esercitazione 10: sorgenti JAVA  x-gzipx-gzip (it, 5 KB, 25/05/10)
    Esercitazione 10: vis.tgz (JSP)  x-gzipx-gzip (it, 0 KB, 25/05/10)
    Esercitazione 10: web.xml  xmlxml (it, 1 KB, 25/05/10)
    Esercitazione 11: form nella progettazione logica  pdfpdf (it, 41 KB, 28/06/10)
    Esercitazione 11: lucidi  pdfpdf (it, 765 KB, 01/06/10)
    Esercitazione 1: esercizio  pdfpdf (it, 82 KB, 02/03/10)
    Esercitazione 1: lucidi  pdfpdf (it, 201 KB, 02/03/10)
    Esercitazione 2: esercizio  pdfpdf (it, 154 KB, 09/03/10)
    Esercitazione 2: lucidi  pdfpdf (it, 365 KB, 09/03/10)
    Esercitazione 3: esercizio  pdfpdf (it, 82 KB, 16/03/10)
    Esercitazione 3: lucidi  pdfpdf (it, 729 KB, 16/03/10)
    Esercitazione 4: esercizio  pdfpdf (it, 82 KB, 30/03/10)
    Esercitazione 4: lucidi  pdfpdf (it, 631 KB, 30/03/10)
    Esercitazione 5: esercizio  pdfpdf (it, 77 KB, 13/04/10)
    Esercitazione 5: lucidi  pdfpdf (it, 608 KB, 13/04/10)
    Esercitazione 6: esercizio  pdfpdf (it, 62 KB, 20/04/10)
    Esercitazione 6: lucidi  pdfpdf (it, 414 KB, 20/04/10)
    Esercitazione 6: tomcat  zipzip (it, 63 KB, 20/04/10)
    Esercitazione 7: esercizio  pdfpdf (it, 69 KB, 27/04/10)
    Esercitazione 7: lucidi  pdfpdf (it, 210 KB, 27/04/10)
    Esercitazione 7: servlet con bean  x-gzipx-gzip (it, 3 KB, 27/04/10)
    Esercitazione 7: servlet senza bean  x-gzipx-gzip (it, 2 KB, 27/04/10)
    Esercitazione 8: EsempiJSP.zip  zipzip (it, 2 KB, 04/05/10)
    Esercitazione 8: esercizio  pdfpdf (it, 72 KB, 04/05/10)
    Esercitazione 8: lucidi  pdfpdf (it, 305 KB, 04/05/10)
    Esercitazione 9: daFare.jsp  octet-streamoctet-stream (it, 0 KB, 18/05/10)
    Esercitazione 9: ElencoCorsiStudio.jsp  octet-streamoctet-stream (it, 0 KB, 18/05/10)
    Esercitazione 9: esercizio  pdfpdf (it, 72 KB, 18/05/10)
    Esercitazione 9: lucidi  pdfpdf (it, 131 KB, 18/05/10)
    Esercitazione 9: main.java  octet-streamoctet-stream (it, 3 KB, 18/05/10)
    Istruzioni generali  pdfpdf (it, 77 KB, 02/03/10)