Credits
6
Types
Compulsory
Requirements
This subject has not requirements
, but it has got previous capacities
Department
ESSI
Web
https://learnsql2.fib.upc.edu/moodle/course/view.php?id=81
Teachers
Person in charge
- Petar Jovanovic ( petar.jovanovic@upc.edu )
Others
- Anna Queralt Calafat ( anna.queralt@upc.edu )
- Gerard Pons Recasens ( gerard.pons.recasens@upc.edu )
Weekly hours
Theory
2
Problems
0
Laboratory
2
Guided learning
0
Autonomous learning
6
Competences
Transversals
Basic
Especifics
Generic
Objectives
-
To know the objectives of a database management system and their architecture.
Related competences: CT6, CE04, CE08, -
To understand the database relational model, their languages (SQL and relational algebra) and the usual components of a relational database.
Related competences: CT4, CT6, CB2, CB3, CE04, CE08, -
To be able to define, create and manipulate usual relational database components.
Related competences: CT4, CT6, CB2, CB3, CE04, CE08, -
To be able to build programs to manage relational databases.
Related competences: CT4, CT6, CB2, CB3, CE04, CE08, -
To know the different available formats for semistructured data, and know how to write SQL queries over them.
Related competences: CG1, CG2, CT4, CT6, CB2, CB3, CE04, CE08, -
To be able to apply some defined quality criteria to choose between several SQL statements, database components, or programs, that manage a database and implement the same functionality.
Related competences: CT4, CT6, CB2, CB3, CE04, CE08, -
To be able to apply some defined quality criteria to choose between several SQL statements, database components, or programs, that manage a database and implement the same functionality.
Related competences: CT6, CB2, CB3, CE04, CE08, -
To have a general vision of how the design of a database should be included in a software development process.
Related competences: CT6, CE04, CE08, -
To be able to obtain a database relational model starting from a conceptual models in UML.
Related competences: CT6, CE04, CE08, -
To know the concept of database transaction and its implications.
Related competences: CT6, CE04, CE08, -
To know how to identify the different types of interference that can occur between database transactions and their relationship with the isolation levels that defines the SQL
Related competences: CT6, CE04, CE08, -
To know the locking concurrency control technique.
Related competences: CT6, CE04, CE08, -
To know the possible physical structures for storing data and its implications for in terms of efficiency.
Related competences: CG1, CG2, CT6, CE04, CE08, -
To know the access methods to data and its implications in terms of efficiency.
Related competences: CG1, CG2, CT6, CE04, CE08, -
To have a general vision of what a database is, what is a database model, the types of users of databases and which are the categories of databases languages.
Related competences: CT6, CE04,
Contents
-
Introduction
Database concept. Database design and models. Types of users. Categories of languages. Concept of database management system (DBMS). Desirable goals for databases that DBMSs must provide. Architecture of the DBMS. -
The relational model
Objectives and origin. Structure of data with which the relational databases are built. Operations provided by the relational model to manipulate and query the data. Integrity rules to be met by the data in a relational database. -
Languages: Relational algebra and SQL
Introduction. Relational algebra: operations of relational algebra; queries. SQL: table creation; insertion, deletion and modification of rows in a table; queries on a database. Considerations about the implementation of queries. -
Logical database components
Concept of a logical database component: data and control components. Introduction to the data components: schemes, tables and domains, assertions and views. Introduction to the control components: stored procedures, triggers and privileges. -
Semistructured data formats and SQL extensions to query them
Introduction to the different semi-structured data formats. SQL extensions to query semi-structured data. -
SQL Programming
Programming in Python and DataFrames. Considerations and quality criteria in the design and implementation of programs that access databases. -
Transactions and concurrency
Concept of transaction. ACID properties of transactions. Interference between transactions. Serialitzability. Recoverability. Concurrency control techniques. Isolation Levels. Locking and isolation levels. -
Introduction to the design of relational databases
Stages in the design of a database. Introduction to the understanding of simple UML conceptual models. Translation of simple UML conceptual models to relational model databases -
Physical storage structures, access methods and optimization
Introduction. Access methods to perform queries and updates in a database. Costs of the different access methods. Introduction to Ouery Optimaztion
Activities
Activity Evaluation act
Theory
2h
Problems
0h
Laboratory
2h
Guided learning
0h
Autonomous learning
4h
Theory
0h
Problems
0h
Laboratory
0h
Guided learning
0h
Autonomous learning
2h
Theory
4h
Problems
0h
Laboratory
0h
Guided learning
0h
Autonomous learning
6h
Theory
0h
Problems
0h
Laboratory
8h
Guided learning
0h
Autonomous learning
6h
Theory
0h
Problems
0h
Laboratory
6h
Guided learning
0h
Autonomous learning
4h
Reviews and resolution of doubts about the exams
Theory
0h
Problems
0h
Laboratory
0h
Guided learning
0h
Autonomous learning
3h
Teaching methodology
Theory classes / problemsAutonomous learning: To prepare classes the student may have to read and understand materials and / or notes indicated by the teacher. Afterwards in class, the student needs to review and solve exercises on the topic of study.
Theory classes In lectures the teachers present a part of the contents of the subject. Normally, teachers use transparencies that students would be advised to obtain before classes, in order to do a better follow-up.
Problems classes In problem classes, students solve exercises about content presented during theory classes. These exercises are done in teams of two students according to a cooperative learning technique.
Evaluation. In four of the problem classes, students will solve an exercise that will be collected and evaluated by the teacher.
Laboratory classes
Autonomous learning: The contents that are worked on in the laboratory classes will be studied autonomously by the students. Each week before in the laboratory class students will have a homework assignment that will end with the resolution of a moodle / LearnSQL quiz.
Laboratory classes: Class work will be in teams of 2 students. Students have the opportunity to share doubts with their teammate about the work they have done at home, and if necessary, to ask questions that are not resolved to the teacher. Next the students do the activities that the teacher has indicated and finally solve the class questionnaire.
Assessment: In each class, the students answer a question individually to evaluate the work done at home previously and during the class. The evaluation is also based on the exercices solved during the class.
Evaluation methodology
The grade of the course is based on technical competencies:- NPR: Problems grade. It is the average of the grades of the four problems exam.
- NLB: Active participation in laboratory sessions. The classes in which students have participated will be taken into account in case of successfully submission of the exercises proposed in the class. The grade will be calculated in proportion to the classes in which the students have actively participated.
- NEP - Partial exam grade.
- NEF: Final exam grade.
Final grade = Maximum (NLB*0.2+NEP*0.30+NEF*0.35+NPR*0.15,NLB*0,2+NEP*0.35+NEF*0,45)
- For students who can take the re-assessment, the re-assessment exam mark will replace NEF and NEP. In any case, the maximum reassessment score can only be 7.
Bibliography
Basic
-
Database systems : the complete book
- Garcia-Molina, Hector; Ullman, Jeffrey D; Widom, Jennifer,
Pearson Education Limited,
[2014].
ISBN: 9781292024479
https://discovery.upc.edu/discovery/fulldisplay?docid=alma991004168919706711&context=L&vid=34CSUC_UPC:VU1&lang=ca -
Database management systems
- Ramakrishnan, Raghu; Gehrke, Johannes,
McGraw-Hill,
cop. 2003.
ISBN: 0071151109
https://discovery.upc.edu/discovery/fulldisplay?docid=alma991002855579706711&context=L&vid=34CSUC_UPC:VU1&lang=ca -
SQL for data science : data cleaning, wrangling and analytics with relational databases
- Badia, Antonio,
Springer,
2020.
ISBN: 9783030575915
https://discovery.upc.edu/discovery/fulldisplay?docid=alma991004916338406711&context=L&vid=34CSUC_UPC:VU1&lang=ca
Complementary
-
SQL-99 complete, really
- Gulutzan, Peter; Pelzer, Trudy,
R & D books,
cop.1999.
ISBN: 0879305681
https://discovery.upc.edu/discovery/fulldisplay?docid=alma991002180409706711&context=L&vid=34CSUC_UPC:VU1&lang=ca -
Encyclopedia of database systems
- Liu, Ling; Özsu, M. Tamer,
Springer,
2009.
ISBN: 9780387399409
Web links
Previous capacities
To know the data structures in internal memory.To be able to implement programs of medium complexity.