azazarfin60/Database_Systems_ECE2215_Semester_Final

Themes

azazarfin60/Database_Systems_ECE2215_Semester_Final

Viewing commit 40bb182

  1. boss_notes
  2. boss_notes_compact
  3. Classnote_by_Raidah
  4. ExercisesFromTextbook
  5. Handnote_by_Fahim_2310002
  6. LectureSlides

README.md

ECE 2215: Database Systems — Study Vault

Course Code: ECE 2215
Course Title: Database Systems (printed as Data Base Systems on the official syllabus)
Credits: 3.00
Department: Electrical & Computer Engineering (ECE), Rajshahi University of Engineering & Technology (RUET)
Instructors: Mst. Nafia Islam Shishir & Md. Rakibul Islam
Primary Textbook: Abraham Silberschatz, Henry F. Korth, & S. Sudarshan, Database System Concepts (7th Edition, McGraw-Hill, 2019)

A complete, Obsidian- and BossNotes-compatible study vault for ECE 2215. It brings together every past exam paper, class test, two-layer solved answer bank, lecture slide deck, student class notebook, and the full digitized textbook in one cross-linked repository.


Vault at a Glance

Resource CategoryDirectory / FileScope & Metrics
Course Syllabus & Mappingsyllabus.mdOfficial 8-unit RUET curriculum and cross-resource alignment matrix
Past Exam ArchivePreviousYearQuestion/7 Semester Finals (2017–2021, 2023–2024; 148 sub-questions, 637 printed marks) + 4 Class Tests (CT-01–CT-04; 26 parts, 80 marks) = 174 question parts (717 marks)
PYQ Analytics & TaxonomyECE2215_PYQ_Analysis_Report.md
subtopicwise_list.md
subtopicwise_questions.md
Quantitative era analysis, 13 topics (T01–T13) / 77 subtopics (T01.1–T13.4), priority tiers, and full verbatim subtopic-sorted question bank
Solved Answers (Exam Style)Topicwise_answers_exam_style/13 topic files (T01–T13), 136 H3 question blocks, 77 H2 subtopics, and 21 custom diagrams written as concise, mark-calibrated exam-sheet solutions
Solved Answers (Explanation)Topicwise_answers_explaination/13 topic files (T01–T13, 136 H3 blocks) with step-by-step derivations, concrete verification checks, Common mistakes callouts, exam tips, and source links
Official Lecture SlidesLectureSlides/8 slide decks (01–08), 371 slides, 102 extracted figures, and a master PYQ-to-slide cross-reference index
Student Class Notes (Raidah)Classnote_by_Raidah/Roll 2310035: unified 65-side notebook, teacher exam suggestions (suggestions.md), 11 topic files (T01–T06, T08–T12), 11 diagrams
Student Handnotes (Fahim)Handnote_by_Fahim_2310002/Roll 2310002: unified 62-page notebook, 6 topic files (T01–T03, T05–T07, including classroom coverage of SQL Triggers), 20 diagrams
Reference TextbookTextbook/Silberschatz Database System Concepts (7th Ed.): 29 sections (Front Matter, Chapters 01–26, Appendix A, Index), 1,373 PDF pages (1,344 printed pages), 368 figures

Quick Start: How to Study from This Repo

  1. Check the high-yield roadmap: Start with ECE2215_PYQ_Analysis_Report.md and subtopicwise_list.md to see which topics carry the most marks. SQL (T05), Normalization (T08), E-R Modeling (T02), and Serializability (T10) alone account for over 50% of all final exam marks.
  2. Read the lecture slides & class notes together: Use LectureSlides/00_Index.md alongside Classnote_by_Raidah/ (plus suggestions.md for teacher pointers) and Handnote_by_Fahim_2310002/ for classroom examples and SQL syntax.
  3. Practice by subtopic: Open subtopicwise_questions.md to drill every past question on a single concept (for example, T08.4 Candidate Keys or T10.1 Conflict Serializability) across all years at once.
  4. Learn with the two-layer answer banks:
    • Read Topicwise_answers_explaination/ first to understand the step-by-step method, verify your result on a sample tuple or schedule, and avoid common pitfalls.
    • Review Topicwise_answers_exam_style/ right before the exam to see the exact length, table layout, and formatting expected on a 3-hour script.
  5. Simulate full papers: Use the frozen papers in PreviousYearQuestion/ (2017.md–2024.md and ClassTestQuestions.md) for timed mock exams.

13-Topic Master Navigation & Exam Weightage

Every resource in this vault is organized around the same 13 topics (T01–T13). Across the 7 semester finals (637 printed marks) and 4 class tests (80 marks), the topics map as follows:

IDTopic NameFinal Marks (Share)Exam FrequencyExam-Style AnswersStep-by-Step ExplanationsLecture SlidesClass Notes (Raidah · Fahim)Textbook Chapters
T01DB Concepts & Architecture44 (6.9%)7/7 Finals, CT-01Exam T01Expl T01Deck 01Raidah T01 · Fahim T01Ch. 01
T02E-R & EER Modeling67 (10.5%)7/7 Finals, CT-02Exam T02Expl T02Deck 05Raidah T02 · Fahim T02Ch. 06
T03Relational Model, Keys & Integrity28 (4.4%)5/7 Finals, CT-01Exam T03Expl T03Deck 02 (S2–8)Raidah T03 · Fahim T03Ch. 02 (§2.1–2.5)
T04Relational Algebra & Calculus48 (7.5%)6/7 Finals, CT-01Exam T04Expl T04Deck 02 (S9–31)Raidah T04Ch. 02 (§2.6), Ch. 16 (§16.1 γ)
T05SQL (DDL, DML, Aggregates, Subqueries)130 (20.4%)7/7 Finals, CT-02Exam T05Expl T05Deck 03Raidah T05 · Fahim T05Ch. 03, Ch. 04 (§4.4)
T06SQL Joins & Views28 (4.4%)4/7 FinalsExam T06Expl T06Deck 04Raidah T06 · Fahim T06Ch. 04 (§4.1–4.2)
T07Triggers & Stored Procedures27 (4.2%)5/7 FinalsExam T07Expl T07—Fahim T07 (Triggers)Ch. 05 (§5.2–5.3)
T08Normalization & Functional Dependencies75 (11.8%)7/7 Finals, CT-03Exam T08Expl T08Deck 06Raidah T08Ch. 07
T09Transactions, ACID & Anomalies41 (6.4%)7/7 Finals, CT-04Exam T09Expl T09Deck 07 (S2–15, 28–33)Raidah T09Ch. 17 (§17.1–17.5)
T10Serializability (Conflict/View, Graphs)51 (8.0%)7/7 Finals, CT-04Exam T10Expl T10Deck 07 (S16–27), Deck 08 (S2–8)Raidah T10Ch. 17 (§17.6), Ch. 18 (§18.5)
T11Concurrency Control Protocols (2PL, Deadlock, TSO)37 (5.8%)6/7 FinalsExam T11Expl T11Deck 08 (S9–30)Raidah T11Ch. 18 (§18.1–18.2, §18.5)
T12Recovery System & RAID43 (6.8%)5/7 FinalsExam T12Expl T12—Raidah T12 (RAID)Ch. 19, Ch. 12 (§12.5 RAID)
T13Security, Indexing & Hashing18 (2.8%)4/7 FinalsExam T13Expl T13——Ch. 09 (§9.8), Ch. 14 (§14.2–14.5)

Past Exam Archive (PreviousYearQuestion/)

All 7 semester-final papers and 4 class tests are preserved verbatim in PreviousYearQuestion/:

Exam PaperEra & FormatPrinted / Full MarksKey Highlights
2017.mdPre-OBE (Sec A + B)93 / 72File system vs. DBMS, RUET student E-R diagram, relational algebra, SQL DDL/DML, 3NF decomposition, 2PL, log-based recovery, hashing, triggers
2018.mdPre-OBE (Sec A + B)96 / 72E-R aggregation & ternary relationships, insurance schema RA, 1NF/2NF, concurrency anomalies, deadlock, TSO rollback, conflict serializability, RAID
2019.mdPre-OBE (Sec A + B)96 / 723-level data abstraction, railway e-ticketing E-R diagram, Covid patient RA, 1NF/2NF, schedule output trace, SQL queries, CGPA calculation
2020.mdPre-OBE (Sec A + B)96 / 722-tier vs. 3-tier architecture, vaccine DB RA, SQL injection, domain relational calculus, natural/outer join tables, transaction states, view serializability
2021.mdTransitional OBE (CLO)96 / 72DBA roles, referential integrity in MySQL, RA with joins, candidate keys, canonical cover Fc​, attribute closure X+, wait-for graph cycle diagram
2023.mdModern OBE (CLO)80 / 60RUET Central Library E-R diagram, 3NF conversion, SQL DDL/DML, candidate/super keys, RAID models, SQL Views, Stored Procedures, Triggers, WAL recovery
2024.mdModern OBE (CO)80 / 60RUET student E-R & schema reduction, courier file vs. DBMS, SQL aggregates, security triggers, inner vs. outer joins, ACID, RAID levels, conflict serializability
ClassTestQuestions.md4 Class Tests (CO)80 (4 × 20)CT-01: Abstraction, schema diagram, RA · CT-02: SQL queries, E-R diagram · CT-03: Keys, prime attributes, 1NF–BCNF · CT-04: ACID, conflict serializability

(Note: No 2022 examination was held due to post-pandemic session adjustments.)


Course Conventions & Exam Traps to Watch Out For

  • MySQL 8 Dialect: RUET teaches and tests MySQL 8. Use DELIMITER // for multi-statement triggers and stored procedures, emulate FULL OUTER JOIN with LEFT JOIN ... UNION ... RIGHT JOIN, and use correlated subqueries, MAX(...), or NOT EXISTS whenever an exam question forbids LIMIT.
  • Silberschatz 6th vs. 7th Edition Shifts:
    • Extended Relational Algebra: Grouping/aggregation (G​γF​) and outer-join operators (⟕,⟖,⟗) are taught in Deck 02 and Deck 04, while 7th Edition moves them from Chapter 02 to Chapter 16 (§16.1–16.2). Relational algebra database modifications (r←r∪E, r←r−E) follow 6th Edition syntax.
    • Canonical Cover (Fc​) & Thomas' Write Rule: Tested in finals (2021 Q.6b) and listed in the syllabus, but omitted from the slides. Find Canonical Cover in Chapter 07 (§7.4.3) and Thomas' Write Rule in Chapter 18 (§18.5.2).
  • Timestamp Rollback Rule Trap:
    • Under Deadlock Prevention (wait-die / wound-wait), an aborted transaction restarts with its original timestamp to prevent starvation (Deck 08 Slide 23; Ch. 18 §18.2.2).
    • Under the Timestamp Ordering (TSO) Protocol, a rolled-back transaction is assigned a brand-new timestamp upon restart (Ch. 18 §18.5.1; tested in 2018 Q.6b and 2024 Q.8b).
  • Running Schema: Both the lecture slides and textbook use the University Database (department, course, instructor, section, teaches, student, takes, advisor, time_slot, classroom, prereq). Full DDL and sample tables are in Textbook/Appendix_A_University_Schema/.

Repository Structure

ECE_2215/
├── README.md                                      # You are here
├── syllabus.md                                    # Official RUET syllabus & cross-resource alignment matrix
├── ECE2215_PYQ_Analysis_Report.md                 # Comprehensive statistical analysis of all past papers
├── subtopicwise_list.md                           # 13-topic (T01–T13), 77-subtopic taxonomy & priority tiers
├── subtopicwise_questions.md                      # All 174 past exam & CT question parts sorted by subtopic
├── PreviousYearQuestion/                          # Verbatim past exam papers (2017–2024) + 4 Class Tests
│   ├── README.md
│   ├── 2017.md ... 2024.md
│   ├── ClassTestQuestions.md
│   └── diagrams/                                  # 1 extracted exam figure + .meta.json sidecar
├── Topicwise_answers_exam_style/                  # Concise, mark-calibrated exam-sheet solutions
│   ├── T01_DB_Concepts_and_Architecture.md ... T13_Security_Indexing_and_Hashing.md
│   └── diagrams/                                  # 21 generated diagrams (+ _scripts/ Python generators)
├── Topicwise_answers_explaination/                # Step-by-step explanations, checks, & mistake callouts
│   ├── T01_DB_Concepts_and_Architecture.md ... T13_Security_Indexing_and_Hashing.md
│   └── diagrams/                                  # 21 mirrored diagrams + .meta.json sidecars
├── LectureSlides/                                 # 8 official slide decks (371 slides)
│   ├── 00_Index.md
│   ├── 01_Intro_to_Database_and_DBMS.md ... 08_Concurrency_Control_Mechanisms.md
│   └── diagrams/                                  # 102 slide figures + .meta.json sidecars
├── Classnote_by_Raidah/                           # Student class notes (Roll 2310035, 65 notebook sides)
│   ├── README.md
│   ├── suggestions.md                             # Teacher exam blueprint & assignment guide
│   ├── DBMS_classnote_2310035.md                  # Unified notebook
│   ├── T01_*.md ... T12_*.md                      # 11 topic-split files (T01–T06, T08–T12)
│   └── diagrams/                                  # 11 cropped notebook figures + sidecars
├── Handnote_by_Fahim_2310002/                     # Student handnotes (Roll 2310002, 62 pages)
│   ├── README.md
│   ├── Handnote_2310002.md                        # Unified notebook
│   ├── T01_*.md ... T07_*.md                      # 6 topic-split files (T01–T03, T05–T07 incl. Triggers)
│   └── diagrams/                                  # 20 cropped handnote figures + sidecars
└── Textbook/                                      # Silberschatz 7th Ed. (29 sections, 1,373 PDF pages)
    ├── README.md
    ├── 00_Front_Matter/
    ├── Chapter_01_Introduction/ ... Chapter_26_Blockchain/
    ├── Appendix_A_University_Schema/
    └── Index/

Viewing & Rendering Notes

  • Obsidian & BossNotes Compatible: All Markdown notes follow strict dual-renderer formatting so they display cleanly in both Obsidian and BossNotes (remark/micromark + KaTeX):
    • Inline math uses $...$ and display math uses $$...$$ with $$ placed alone on its own line.
    • Complex relational schemas, unnormalized tables with merged cells (rowspan), and multi-column transaction schedules use clean inline HTML tables inside Markdown table cells.
  • Page & Slide Markers:
    • Textbook/ files include <!-- Page N --> comments matching the printed book page numbers (1–1344).
    • LectureSlides/ files include <!-- Slide N --> comments above every slide section (371 total).
    • Classnote_by_Raidah/ and Handnote_by_Fahim_2310002/ preserve original notebook pagination via <!-- Page N --> markers.
  • Diagrams & Metadata Sidecars: All 544 JPG figures across the repository live in local diagrams/ folders and are paired with <filename>.jpg.meta.json sidecar files containing figure descriptions, source page/slide coordinates, and generator metadata.