
- 9 ECTS
- 2nd Semester
- Exam: Optional
Feedback
4 months ago
Foi uma surpresa agradável ver na primeira aula o planeamento de toda a cadeira, e pode ser muito vantajoso o facto das aulas terminarem em abril. As aulas em inglês são mais pacíficas, e até mais fáceis de apanhar. O projeto requer um trabalho consistente e não pode ser deixado para o fim, mas as aulas práticas ajudam imenso a perceber os conceitos para a realização do mesmo, e aumentam exponencialmente a qualidade do produto final. A defesa do projeto é obrigatória e bastante exigente, mas raros foram os casos onde vi descidas de nota. Os slides são úteis apenas para consulta de alguns pormenores na realização de exercícios, porque a melhor forma de estudar (além de ir às aulas práticas) é mesmo resolvendo testes e exames de anos anteriores, já que seguem sempre a mesma estrutura. A grande dificuldade nos testes é a gestão do tempo, pelo que a chave é praticar bastante.
4 months ago
A cadeira foi gira, embora a primeira matéria, antes do SQL, fosse algo confusa e chata, como álgebra relacional. O projeto foi super divertido de fazer (criar uma aplicação em Oracle sobre uma base de dados) mas foi algo complicado de perceber an interface ao início, pelo que aconselho começarem cedo a tentar perceber. Usei VSCode nas aulas práticas e sinceramente para querys a AI ajuda bastante a perceber.
4 months ago
Os professores na prática nao ensinam tao bem. O projeto e muito complicado e os professores nao ensinam como mexer no apex. Vão ter alguns recursos no clip para estudarem para o teste. Recomendo estudarem bem a matéria e estudarem em grupo
4 months ago
Tem conceitos novos sobre Bases de Dados que ao início são bastante leves e que começam a sobrecarregar quando a linguagem SQL começa a ser inserida. É complicada e se não tiverem o foco nas aulas práticas sobretudo será difícil de acompanhar. Têm um projeto trabalhoso que vos ocupa o semestre inteiro portanto tenham cuidado com os prazos. As avaliações não costumam ser muito difíceis, se perceberes os conceitos. As aulas práticas ajudam a entender bem os conceitos, juntamente com as fichas práticas feitas nas mesmas.
4 months ago
A cadeira de Bases de Dados foi, na minha opinião, uma das mais importantes do curso porque fornece bases que acabam por ser utilizadas em muitas outras unidades curriculares e projetos.
A carga de trabalho foi moderada. Ao longo do semestre existem vários conceitos novos (modelo entidade-relação, álgebra relacional, SQL, normalização, transações e outros), por isso é importante não deixar a matéria acumular. Se fores acompanhando semanalmente, tudo se torna muito mais simples.
O método de ensino ajudou bastante porque os exercícios acompanhavam a matéria teórica e permitiam perceber rapidamente onde estavam as dificuldades. A parte prática foi essencial para consolidar os conhecimentos, principalmente quando começámos a resolver problemas mais completos e semelhantes aos do exame.
Em relação à avaliação, a melhor estratégia é praticar muitos exercícios. Saber apenas a teoria normalmente não chega. É importante escrever consultas SQL do zero, perceber porque funcionam e tentar resolver exercícios sem consultar apontamentos. Também aconselho a rever exames de anos anteriores, porque ajudam bastante a perceber o tipo de raciocínio exigido.
Relativamente aos materiais, os slides são úteis para compreender os conceitos, mas o verdadeiro progresso acontece a resolver exercícios. Criar uma pequena base de dados própria e experimentar diferentes consultas (JOINs, GROUP BY, HAVING, subqueries, etc.) ajuda muito a ganhar confiança.
Algumas dicas para futuros alunos:
- Não deixem SQL para estudar apenas na época de exames.
- Tentem compreender a lógica das relações entre tabelas antes de escrever consultas.
- Façam muitos exercícios de JOINs, GROUP BY, HAVING e subqueries, porque costumam ser os temas onde surgem mais dificuldades.
- Prestem atenção à normalização e ao modelo entidade-relação desde o início, pois esses conceitos aparecem repetidamente.
- Antes do exame, resolvam vários exames antigos dentro do tempo limite para ganhar rapidez.
No geral, considero que é uma cadeira bastante útil e com aplicação prática real. Exige trabalho consistente, mas quem acompanha a matéria ao longo do semestre acaba por aprender muito e ganha uma base importante para desenvolvimento de software e gestão de dados.
About the course
Objectives
To provide the basis for the modeling, implementation, analysis and manipulation of relational databases.
Objectives
Knowledge
- To know the entity-relationship model and the relational data model, as well as the foundations of the object-relational model
- Relational algebra as the formal language of relational data base querying and manipulation
- Foundations of the SQL language (both as a definition and as a manipulation language)
- Normalization of data bases using functional and multi-valued dependencies
- Brief overview of data modeling in XML and manipulation mechanisms for semi-structured data
Know-how
- To model a medium-sized real problem first using Entity-Relationship Diagrams and then a relational database (the resulting data base should have 10 to 20 tables)
- To create a database in SQL for the medium-sized problem, including implementation of all mechanisms for guaranteeing referential integrity
- To implement a simple interface for manipulation of the database
- To be proficient in writing complex SQL queries
- To use the basic object-relational mechanisms of SQL
Soft-Skills
- Capability of doing team work in collaboration
- Problem modeling capabilities
- Write an analysis report, design and implement a solution
- Manage time and deadlines
Syllabus
- Introduction to Database Management Systems
- Data models
- Entity-Relationship model
- Relational model
- Relational databases normalization
- Functional and multi-valued dependencies
- Normal forms: 3rd, 4th and Boyce-Cood
- Database manipulation languages
- Relational Algebra
- SQL query and manipulation language
- Other languages
- Database integrity
- Referential integrity
- Assertions and triggers
- Interaction with databases
- Embedded SQL, ODBC, JDBC
- Security and authorisations
- Transactions
- Discussion about other database models
- Object/relational databases (and the SQL case).
- Deductive databases
- XML
- Data models
Something missing or out of date?
Assessment
Assessment
The evaluation consists of a theoretical component and a practical component. Both components are assessed on a scale from 0 to 20.
To pass the course, a student needs to achieve a score equal to or higher than 9.5 points in both the theoretical and final grade.
The final grade for the course is the weighted average of the two components, with the theoretical component accounting for 60% of the grade and the practical component accounting for 40%.
Theoretical Component
The theoretical component can be completed in two ways:
- Through the completion of 2 tests, closed book:
- 1st Test: on the material from the first 8 theoretical classes and 4 practical classes, unless otherwise notified.
- 2nd Test: on the remaining material.
- Through the completion of an exam, closed book.
The assessments will take place in person provided that conditions allow it. Otherwise, we will resort to authorized remote assessment mechanisms for conducting the exams. If the exams are conducted remotely, the structure of past year''s tests may not apply.
During an assessment, a student may not have any electronic devices capable of accessing the internet or with Bluetooth connectivity (e.g., smartphones, smartwatches, smartglasses, tablets, laptops) with them, even if they are turned off. Violation of this rule results in immediate failure of the curricular unit by exclusion and will be reported to the Scientific Committee of the respective program.
The grade for the theoretical component is obtained through:
- The arithmetic average of the grades from the 2 tests, rounded to one decimal place, or
- The grade from the exam, rounded to one decimal place.
Students may be selected by the course instructor for an oral exam, the grade of which may partially or fully replace the grade for the theoretical component.
Practical Component
The practical component is carried out through the development, as a group, of a practical assignment, delivered in two phases, followed by a discussion. The assignment should be primarily developed outside of class time, with only two classes at the end of the semester dedicated to addressing final doubts.
Despite the assignment being completed as a group, the grade for this component will always be individual (and not assigned to the group).
IMPORTANT : Grades from practical assignments in previous academic years for this course are valid for assessment this year. Students who wish to maintain the grade for the practical component cannot enroll in practical classes. Enrollment in a practical classes automatically results in the loss of the previously obtained practical component grade.
Detailed information about the practical assignment, including the respective submission deadlines, penalties for late submissions, and guidelines for reporting the use of AI tools, will be available at Documentação de Apoio -> Outros (ProjectBD.pdf)
In Avisos on this page on CLIP you can find some frequently asked questions regarding the tests and the exam.
Has the assessment changed, or is something missing?
Bibliography
Recommended book: Database System Concepts, 7th Edition. Abraham Silberschatz, Henry F. Korth and S. Sudarshan McGraw Hill, 2019 ISBN 9780078022159
Slides: After each class, the slides will be made available online in CLIP.
Complementary reading material: - A Guide to the SQL Standard (4th Ed) C. J. Date and Hugh Darwen Addison-Wesley ISBN:0-201-94426-0 - Database Design and Relational Theory: Normal Forms and All That Jazz (2nd Ed) C. J. Date Apress, 2019 ISBN: 978-1484255391
Missing a book or some materials?