Skip to content
Courses
Computer ScienceFreeIntermediate

DBMS

ER models, SQL, normalization, transactions, concurrency control and crash recovery — exam + interview core

3(3 reviews)21 learners2 hrCertificate
  • 4

    Modules

  • 8

    Lessons

  • 1h 42m

    Of material

  • 8

    Graded challenges

  • Intermediate
  • English audio
  • English captions
  • Certificate on completion

Capstone · what you will build

Mini database design note

Design a small application database (4–6 pages or equivalent markdown): (1) ER diagram for a library or e-commerce domain with cardinalities; (2) mapped relations with PK/FK and referential integrity noted; (3) functional dependencies listed and each relation normalized to 3NF or BCNF with closure-based justification; (4) five example SQL queries covering join, aggregate with HAVING, subquery and an index recommendation with reasoning. Submit as PDF or a public markdown URL.

You submit: PDF or public markdown link showing the ER diagram, mapping rules applied, FD closures worked on paper, and runnable SQL — not screenshots of a GUI designer.

What you walk away with

A certificate anyone can verify

TieEduCERTIFICATE OF COURSE COMPLETIONCertificate of CompletionThis certifies thatYour namehas successfully completed all lessons ofDBMSLessons completedXP earnedDate of issueISSUED BYTieEdu Placement IntelligenceSerial · Ed25519 signature

A sample of the certificate this course issues (professional tier). Yours carries your name, lessons completed, XP, the date, and a serial with a QR code anyone can verify.

  • Verifiable certificate

  • XP on the leaderboard

Learn it lesson by lesson

ER Diagrams to Tables

Drawing and reading ER diagrams: entities, relationship sets, cardinality and participation, generalisation, and how an ER model becomes tables.

What you will learn
  • Identify entities, attributes, relationship sets and keys in an ER diagram
  • Distinguish cardinality ratios (1:1, 1:N, M:N) and total vs partial participation
  • Map an ER diagram to relational tables including FK placement rules

Every DBMS exam paper opens with "Draw the ER diagram for X" — and every software design interview closes with "how would you model this?" The skill is identical: decide what is a thing, what is a fact about a thing, and where the relationship lives.

ER building blocks:

  • Entity set: a noun (Student, Course). Weak entity set: no key of its own, identified via an owner entity (Dependent of Employee) — double rectangle, partial key with dashed underline.
  • Attributes: simple/derived (age from DOB)/multivalued (ovals double)/composite. Key attribute underlined.
  • Relationship set: a verb (Enrolls, Works_For). Degree = number of participating entity sets.

Cardinality:

  • 1:1 — one A relates to at most one B (Head manages Department)
  • 1:N — one A relates to many B (Department has Employees)
  • M:N — many A relate to many B (Student Enrolls Course)

Participation: total (every A must participate — double line) vs partial (optional — single line).

Keys in relationships: for 1:1 the relationship can borrow a key from either side; for 1:N the key of the N-side entity moves into the 1-side table as FK; for M:N a new junction table with PK = (keyA, keyB).

ER → relational mapping rules:

  1. Each strong entity set → one table; attributes become columns; key = primary key.
  2. 1:1 relationship → merge tables or add FK + UNIQUE on the participating side.
  3. 1:N → add FK on the N-side.
  4. M:N → new relation with composite PK of both participant keys (plus relationship attributes).
  5. Multivalued attribute → separate table.
  6. Weak entity → table with owner FK; PK = (owner PK, partial key).
  7. Generalisation (ISA) → single table with type discriminator, or one table per subclass (design trade-off).

Relational model vocabulary: relation = table, tuple = row, attribute = column, domain = allowed values, degree = columns, cardinality = rows.

Cardinality
Where the FK goes
1:1Either side (UNIQUE constraint) or merged table
1:NN-side table gets FK to 1-side
M:NNew junction table, composite PK
Total participation in SQL terms

Total participation = NOT NULL FK; partial = FK may be NULL.

ER mistakes that cost marks

Forgetting derived/multivalued attributes, and placing the FK on the wrong side of a 1:N.

Map a university ER model to tables
Student (roll, name) and Course (cid, title) with M:N Enrolls (sem); Department (dname) 1:N offers Course; Employee 1:1 manages Department.
  1. 1

    Strong entities

    Student(roll PK, name), Course(cid PK, title), Department(dname PK), Employee(eid PK, name).

  2. 2

    M:N Enrolls

    Junction Enrolls(roll, cid, sem) PK = (roll, cid), FKs to Student and Course.

  3. 3

    1:N offers

    Add FK dname to Course (a course belongs to one department); Course stays its own table.

  4. 4

    1:1 manages

    Add FK eid to Department with UNIQUE — one employee manages at most one department.

  5. 5

    Check

    Every relationship covered; no attribute left homeless; FKs point to the 1-side.

Solution

Five base tables + one junction table; FKs placed by cardinality rules.

Weak entity

Dependent (dname) of Employee with partial key dname. Write the table and its PK.

Hint: Owner key + partial key together.

Common mistakes
  • Putting a FK in both tables for a 1:N relationship

    Only the N-side needs the FK; the other direction is implied.

  • Using name as the primary key of Student

    Names are not unique — prefer roll/enrollment id; examiners penalise non-unique PKs.

Exam / interview angle

What is a weak entity set? How is it represented in the relational model?

An entity set without a key of its own, identified via its owner entity; mapped with owner FK + partial key forming the composite PK.

Source: Frequent 4-mark question.

Lesson summary
  • ER = entities, attributes, relationships with cardinality and participation.
  • Mapping: 1:N → FK on N; M:N → junction table; weak → owner FK + partial key.
  • Relational vocabulary: relation/tuple/attribute, keys, domain.

What you will be able to do

  1. Draw ER diagrams and map them to tables with correct FK placement
  2. Use relational algebra including select, project, join and division
  3. Write SQL with joins, aggregation, subqueries and views correctly
  4. Explain B+ tree vs hash indexes and when each is used
  5. Compute attribute closures and normalize relations to 3NF/BCNF
  6. State ACID and test conflict serializability with precedence graphs
  7. Explain 2PL, deadlock policies and write-ahead logging recovery

About this course

University DBMS papers reward a repeatable method: identify the FDs, compute closures, detect the violated normal form, split, verify. This course drills exactly that method, then does the same for the two big theory units — serializability graphs and recovery logs — so exam answers follow a fixed, checkable sequence instead of hope.

The SQL lessons are written for people who will use SQL daily: clause evaluation order, the WHERE vs HAVING distinction, NULL behaviour in NOT IN, and indexes explained as "why did my query get fast". The concurrency and recovery lessons close with the industry-standard answers (Strict 2PL, WAL, checkpoints) that interviewers expect to hear.

The final exam draws from a 30-question bank; the certificate project is a small schema design you can show as proof of skill.

Who this course is for

  • CSE/IT students in semester 3–5 facing university DBMS exams
  • Placement candidates preparing for SQL and database rounds
  • GATE aspirants building normalization and transaction fundamentals
  • Backend/developer beginners who want relational design to click

What you should know before you start

Anything here is assumed, not taught. If it is not on the list, the course explains it.

  • Basic set theory and logical reasoning
  • Any programming language (SQL syntax is taught from scratch)

Questions before you start

How much time does DBMS take?

The course is 4 modules and 8 lessons — about 2 hr of material in total. Lessons unlock in order, so the time it takes you depends on how much of each lesson you actually read.

Do I get a certificate?

Yes. Finish every lesson and a certificate is issued automatically. Its serial is public: anyone can check it at https://tieedu.in/verify without an account, and a revoked certificate stops verifying.

Is it really free?

Yes — this course is free, and there is nothing to buy to start it.

How is my progress tracked?

On the server, lesson by lesson. Time is credited at real-time speed and capped, so a lesson cannot be marked complete faster than it can be read. That is why the percentage survives a new device.

How do ratings work?

Only learners who finished the course can rate it, and the average shown is calculated from those ratings alone. A course nobody has finished yet carries no rating rather than a default one.

See all

Intermediate · Computer Science

OSI to TCP/IP, subnetting, TCP internals, DNS/HTTP/DHCP, TLS security and modern delivery — exam + interview core

5 (5 reviews)21 learners4 modules8 lessons1 hr 37 min
FreeNewPopular

Intermediate · Computer Science

Processes, scheduling, concurrency, deadlock, memory, paging, virtual memory and file systems — exam + interview core

4.9 (17 reviews)66 learners4 modules8 lessons1 hr 39 min
FreeNewPopular

Intermediate · Mechanical

Fluid statics, Bernoulli, flow measurement, momentum forces, pipe losses, dimensional analysis and open-channel flow — ME exam + interview core

1 learner4 modules8 lessons2 hr
FreeNew

Intermediate · Electronics

Convolution, Fourier series & transform, sampling theorem, Laplace & Z-transforms, Bode plots and modulation — ECE exam + interview core

3 learners4 modules8 lessons2 hr
FreeNew

Free · lifetime access