46.8 KB · commit 40bb182
| year | 2017 |
|---|---|
| exam | B.Sc. Engineering 2nd Year Even Semester Examination, 2017 |
| course_code | ECE 2215 |
| course_title | Database Systems |
| full_marks | 72 |
| time | 3 Hours |
| layer | exam-style |
← Directory Overview | Explanation Layer | Original Question Paper | Next: 2018 →
Topic: T01.2 · File system vs DBMS · Section A
Question. Write down four significant differences between a file processing system and a DBMS.
Answer.
| Feature | File Processing System | DBMS (Database Management System) |
|---|---|---|
| Data Redundancy & Inconsistency | Data is duplicated across multiple separate files. Different copies easily get out of sync. | Centralizes data storage. Normalization avoids duplication and keeps copies consistent. |
| Data Access & Retrieval | Programmers must write a new custom program in C or Java for each new query. | Users write declarative queries (like SQL) to retrieve ad-hoc data quickly without new code. |
| Data Isolation & Independence | Data structures and application code are tightly coupled. Changing a file structure breaks programs. | Provides data abstraction. Changes to physical storage structures do not affect application programs. |
| Concurrent Access & Recovery | Hard to coordinate simultaneous access. Multiple updates cause lost data. Crash recovery is manual. | Built-in concurrency control prevents conflicting updates. Automated logging and recovery preserve ACID properties. |
Variant for 2021 Q.1(a) (4 marks): The same four differences directly answer the question.
Topic: T02.5 · Design a full E-R diagram for a scenario · Section A
Question. Draw an E-R diagram for RUET student database which can be used to store student's basic information, course advisor's information, subject registration, result information.
Answer.
Design Specifications:
roll_no. Attributes: name, dept_name, series.advisor_id. Attributes: name, designation, department.course_code. Attributes: course_title, credits.result_id. Attributes: semester, gpa, cgpa.Relationships:
Advises (1:N): An advisor guides multiple students. Each student has one advisor (total participation of student).Registers (M:N): Students register for multiple courses, and courses have many students. Descriptive attributes: session, semester.Obtains (1:N): Each student obtains multiple semester results (total participation of result).
Figure: RUET Student Database Conceptual E-R Diagram
Short version for 2024 Q.1(b) (2 marks):
Draw the 4 entity rectangles (STUDENT, ADVISOR, COURSE, RESULT) and 3 relationship diamonds (Advises, Registers, Obtains) with primary keys underlined (roll_no, advisor_id, course_code, result_id) and cardinality labels (1:N, M:N, 1:N). Omit secondary descriptive attributes to complete within 2 marks.
Topic: T01.3 · Functions of the DBA and relation schema · Section A (Repeated question: Also asked in 2020 | Solved in T01)
Question. What are the main functions of a database administrator? Point out the name only.
Answer.
Five Main Functions of a Database Administrator (DBA):
Relation Schema:
A relation schema is the formal logical definition or blueprint of a relation (table). It specifies the name of the relation along with its set of attributes (columns) and their corresponding domains (data types).
Variant for 2021 Q.1(b) (3 marks): State and explain the five DBA functions above; omit the relation schema.
Variant for 2017 Q.1(c) (2 marks): List only the names: (1) Schema definition, (2) Storage structure and access-method definition, (3) Schema and physical-organization modification, (4) Granting of authorization for data access, (5) Routine maintenance.
Topic: T04.2 · Write RA queries on a given schema · Section A
Question.
Consider the following relational database.
employee(person_name, street, city)
works(person_name, company_name, salary)
company(company_name, city)
manages(person_name, manager_name)
Now write down the relational algebra(Not SQL) to express each of following queries:
(i) Find the names of all employees who live in the city same as their corresponding company location.
(ii) Give a 10% salary raise to all the managers only.
(iii) Update the city information of the employee named "James" to "Newtown".
(iv) Find the company with most employees.
Answer.
(i) Employees living in the same city as their company:
Natural join matches person_name, company_name, and ensures employee.city = company.city:
Equivalently, in a single expression:
Πperson_name(employee⋈works⋈company)(ii) Give a 10% salary raise to all managers only:
Identify manager names, join with their work records, compute the raise, and union with untouched non-manager records:
M←ρM(person_name)(Πmanager_name(manages)) Tmgr←works⋈M Traised←Πperson_name,company_name,salary∗1.1(Tmgr) Tuntouched←works−Tmgr works←Traised∪Tuntouched(iii) Update city of employee "James" to "Newtown":
Replace the city attribute for James and keep all other employee records unchanged:
Tjames←σperson_name="James"(employee) Tupdated←Πperson_name,street,"Newtown"(Tjames) Tuntouched←employee−Tjames employee←Tupdated∪Tuntouched(iv) Find the company with the most employees:
Count employees per company, find the maximum count, and select the matching company name:
Tcounts←company_nameγcount(person_name) as num_emp(works) Tmax←γmax(num_emp) as max_emp(Tcounts) Πcompany_name(σnum_emp=max_emp(Tcounts×Tmax))Topic: T01.4 · Data abstraction levels, schemas and instances · Section A
Question. What is the purpose of data abstraction? Describe the different level of data abstraction.
Answer.
Purpose of Data Abstraction:
A database contains complex data structures, storage blocks, and indexing schemes. Most end users and programmers are not trained in low-level storage details. Data abstraction hides this physical complexity. It simplifies user interactions, enforces security, and enables physical data independence.
Levels of Data Abstraction:
type instructor = record
ID : string;
name : string;
dept_name : string;
salary : integer;
end;
Figure: Three levels of data abstraction (Deck 01, Slide 14)
Variant for 2019 Q.2(a) (4 marks): Define data abstraction, describe the three levels, and include the diagram.
Variant for CT-01 Q.01 (5 marks): State the definition, explain the three levels, show the record example, and draw the diagram.
Topic: T08.6 · Define normalization (and its importance) & 1NF / 2NF / 3NF · Section A
Question. What do you mean by normalization? Why normalization is important for database?
Answer.
Normalization is a formal, systematic technique for designing relational database schemas. It decomposes relations with anomalies into smaller, well-structured relations to reduce data redundancy and ensure data integrity.
Normalization is essential for relational databases because it:
Short version for CT-03 Q.03 (3 marks): Define normalization as the systematic decomposition of relations to minimize redundancy and eliminate anomalies. State the main objective: to produce well-structured tables free of insertion, update, and deletion anomalies while maintaining data consistency.
Topic: T08.8 · Normalize an unnormalized table → 1NF → 2NF → 3NF · Section A
Question.
Consider the following data table com_employee. Is it already normalized? If not then normalize the table com_employee up to 3rd normal form.
com_employee
| Pcode | Ptitle | EmpNo | EmName | EmCon | dNo | dName | HRate |
|---|---|---|---|---|---|---|---|
| p1 | Admission Test System | E1 | Jones | 501, 502 | D1 | IT | 1000 |
| p1 | Admission Test System | E3 | Smith | 505 | D2 | Database | 1100 |
| p1 | Admission Test System | E4 | James | 508, 509 | D3 | HR | 800 |
| p2 | Salary System | E1 | Jones | 501, 502 | D1 | IT | 900 |
| p2 | Salary System | E3 | Smith | 505 | D2 | Database | 1000 |
Answer.
No, the table is not normalized.
It contains multi-valued entries in column EmCon (501, 502 and 508, 509). This directly violates the atomicity requirement of First Normal Form (1NF). In addition, it mixes project, employee, contact, department, and assignment facts, causing partial and transitive dependencies.
EmpNo).To achieve 1NF, we eliminate multi-valued fields by splitting them into separate atomic rows:
| Pcode | Ptitle | EmpNo | EmName | EmCon | dNo | dName | HRate |
|---|---|---|---|---|---|---|---|
| p1 | Admission Test System | E1 | Jones | 501 | D1 | IT | 1000 |
| p1 | Admission Test System | E1 | Jones | 502 | D1 | IT | 1000 |
| p1 | Admission Test System | E3 | Smith | 505 | D2 | Database | 1100 |
| p1 | Admission Test System | E4 | James | 508 | D3 | HR | 800 |
| p1 | Admission Test System | E4 | James | 509 | D3 | HR | 800 |
| p2 | Salary System | E1 | Jones | 501 | D1 | IT | 900 |
| p2 | Salary System | E1 | Jones | 502 | D1 | IT | 900 |
| p2 | Salary System | E3 | Smith | 505 | D2 | Database | 1000 |
PK: (Pcode, EmpNo, EmCon)
We eliminate partial dependencies where non-prime attributes depend on proper subsets of the composite key:
Pcode -> Ptitle depends only on Pcode.EmpNo -> EmName, dNo, dName depends only on EmpNo.(EmpNo, EmCon) represents employee phone numbers.(Pcode, EmpNo) -> HRate depends on the full project-employee assignment.We decompose into four 2NF relations:
PROJECT
| Pcode | Ptitle |
|---|---|
| p1 | Admission Test System |
| p2 | Salary System |
PK: Pcode
EMPLOYEE_2NF
| EmpNo | EmName | dNo | dName |
|---|---|---|---|
| E1 | Jones | D1 | IT |
| E3 | Smith | D2 | Database |
| E4 | James | D3 | HR |
PK: EmpNo
EMP_CONTACT
| EmpNo | EmCon |
|---|---|
| E1 | 501 |
| E1 | 502 |
| E3 | 505 |
| E4 | 508 |
| E4 | 509 |
PK: (EmpNo, EmCon)
PROJECT_ASSIGNMENT
| Pcode | EmpNo | HRate |
|---|---|---|
| p1 | E1 | 1000 |
| p1 | E3 | 1100 |
| p1 | E4 | 800 |
| p2 | E1 | 900 |
| p2 | E3 | 1000 |
PK: (Pcode, EmpNo)
In EMPLOYEE_2NF, a transitive dependency exists:
Here, dNo is a non-prime attribute determining another non-prime attribute dName.
We decompose EMPLOYEE_2NF into:
DEPARTMENT(dNo, dName) with PK dNo.EMPLOYEE(EmpNo, EmName, dNo) with PK EmpNo and foreign key dNo referencing DEPARTMENT.PROJECT
PROJECT(Pcode, Ptitle)
PK: Pcode
DEPARTMENT
| dNo | dName |
|---|---|
| D1 | IT |
| D2 | Database |
| D3 | HR |
PK: dNo
EMPLOYEE
| EmpNo | EmName | dNo |
|---|---|---|
| E1 | Jones | D1 |
| E3 | Smith | D2 |
| E4 | James | D3 |
PK: EmpNo | FK: dNo references DEPARTMENT(dNo)
EMP_CONTACT
EMP_CONTACT(EmpNo, EmCon)
PK: (EmpNo, EmCon) | FK: EmpNo references EMPLOYEE(EmpNo)
PROJECT_ASSIGNMENT
PROJECT_ASSIGNMENT(Pcode, EmpNo, HRate)
PK: (Pcode, EmpNo) | FKs: Pcode references PROJECT(Pcode), EmpNo references EMPLOYEE(EmpNo)
Topic: T05.2 · DDL + DML warm-up: CREATE, INSERT, ALTER ... ADD, UPDATE, DELETE, rename, filter · Section A
Question.
Considering following tables (INFO, MARKS, CREDIT) answer (i),(ii) & (iii).
INFO
| MARKS
| CREDIT
|
Answer.
(i) Create table MARKS:
CREATE TABLE MARKS (
roll INT,
sub_code VARCHAR(20),
gpa DECIMAL(3, 2),
PRIMARY KEY (roll, sub_code),
FOREIGN KEY (roll) REFERENCES INFO(roll),
FOREIGN KEY (sub_code) REFERENCES CREDIT(sub_code)
);
(ii) Subject code and GPA for student with class serial 02:
Assumption: In the RUET roll format (e.g., 1710002), the final two digits represent the student's class serial. Class serial 02 identifies student roll 1710002 (Oliver).
SELECT sub_code, gpa
FROM MARKS
WHERE roll = 1710002;
(Alternative dynamic filter matching the last two digits: WHERE roll % 100 = 2;)
(iii) Calculate CGPA of each student:
SELECT m.roll,
SUM(m.gpa * c.credit) / SUM(c.credit) AS cgpa
FROM MARKS m
JOIN CREDIT c ON m.sub_code = c.sub_code
GROUP BY m.roll;
Topic: T09.1 · ACID properties · Section B
Question. Briefly discuss the ACID properties of transaction.
Answer.
A transaction is a logical unit of program execution that accesses and updates data items. To preserve data integrity during crashes and concurrent access, the DBMS must ensure the four ACID properties:
Atomicity ("All-or-None"):
Consistency (Preservation of Invariants):
Isolation (Shielding Concurrent Access):
Durability (Persistence):
Short version for 2024 Q.6(c) (2 marks):
Topic: T10.1 · Define conflicting instructions & conflict serializability · Section B
Question. What do you know about conflict serializability?
Answer.
Conflict serializability is a property of a transaction schedule. A schedule S is conflict serializable if it is conflict equivalent to a serial schedule. That is, we can transform S into a serial schedule by swapping non-conflicting adjacent instructions.
Topic: [[Topicwise_answers_exam_style/T10_Serializability.md#T10.4 · Build serializable/non-serializable schedules (T1,T2 with "if A = 0 then B := B+1")|T10.4 · Build serializable/non-serializable schedules (T1,T2 with "if A = 0 then B := B+1")]] · Section B
Question.
Consider the following two transactions.
T1:
read(A);
read(B);
if A = 0 then B:=B+1;
write(B);
T2:
read(B);
read(A);
if B = 0 then A:=A+1;
write(A);
Let the consistency requirement be A=0 or B=0 with A=B=0 the initial values.
(i) Show a concurrent execution of T1 and T2 that produces a nonserializable schedule.
(ii) Is there a concurrent execution of T1 and T2 that produces a serializable schedule?
Answer.
Initial state: A=0,B=0. Consistency requirement: A=0∨B=0.
In any serial execution, the database remains consistent:
Consider the following interleaved execution where both transactions read the initial values before either writes:
| Step | T1 | T2 | Local state |
|---|---|---|---|
| 1 | read(A); | T1 reads A=0 | |
| 2 | read(B); | T2 reads B=0 | |
| 3 | read(B); | T1 reads B=0 | |
| 4 | read(A); | T2 reads A=0 | |
| 5 | if A = 0 then B:=B+1;write(B); | T1 evaluates 0=0 (true), sets B=1, writes B=1 | |
| 6 | if B = 0 then A:=A+1;write(A); | T2 evaluates 0=0 (true), sets A=1, writes A=1 |
Final state: A=1 and B=1.
The consistency rule requires A=0 or B=0. Here both are 1. The database is in an inconsistent state.

Proof of nonserializability:
Because it creates a cycle and ends in an inconsistent state that no serial schedule can produce, this schedule is non-serializable.
No.
Proof: For an execution to be genuinely concurrent (interleaved), both transactions must start before either finishes:
Any interleaved execution forces both edges T1→T2 and T2→T1. This always creates a directed cycle. Therefore, no concurrent execution of T1 and T2 can produce a serializable schedule. Only strictly serial executions (⟨T1,T2⟩ or ⟨T2,T1⟩) are serializable.
Topic: T02.7 · EER: specialization / generalization · Section B
Question. Write short note on specialization and generalization in DBMS.
Answer.
Specialization (Top-down):
A top-down design process. A higher-level entity set is divided into lower-level entity sets that have distinctive attributes or participate in specific relationships.
person specialized into employee and student.Generalization (Bottom-up):
A bottom-up design process. Multiple lower-level entity sets sharing common properties are synthesized into a single higher-level entity set.
instructor and secretary into employee.Key Properties:
Figure: Specialization Hierarchy Example (Deck 05, Slide 51)
Topic: T11.2 · Two-phase locking: growing/shrinking phases, lock point, inserting lock/unlock instructions · Section B
Question. How concurrent execution of transactions are controlled using two phase based locking protocol? Briefly discuss with an example.
Answer.
Two-Phase Locking (2PL) Protocol:
The Two-Phase Locking protocol controls concurrent transactions by requiring each transaction to acquire and release locks in two separate, sequential phases:
Lock Point:
The point in time where a transaction acquires its final lock is called its lock point. Once a transaction releases its first lock, the shrinking phase begins. The 2PL protocol guarantees conflict serializability. Transactions execute in the order of their lock points.

Figure: Two-Phase Locking Protocol (Source: Deck 08, Slide 13)
Example:
Consider transaction T1 transferring money between accounts A and B:
lock-S(A); -- Growing phase begins
read(A);
lock-X(B); -- Lock point (last lock acquired)
read(B);
B := B - 50;
write(B);
unlock(A); -- Shrinking phase begins (no more locks allowed)
unlock(B); -- Final unlock
Here, all locks are obtained before any lock is released. Therefore, T1 follows 2PL and guarantees conflict serializability with concurrent transactions.
Topic: T12.1 · Failure classification, precautions, recovery methods · Section B
Question. Classify and discuss the failures in DBMS.
Answer.
A database management system experiences three main classes of failure based on the affected storage component:
Variant for 2023 Q.7(a) (CLO2, 3 marks): The same three-part classification directly answers the question.
Topic: T12.3 · Log-based recovery and shadow paging · Section B
Question. Discuss shortly the log-based recovery approach to ensure atomicity despite of failures of DBMS.
Answer.
Log-based recovery ensures atomicity by recording every database update in an append-only log on stable storage before modifying the actual database on disk.
Topic: T11.2 · Two-phase locking: growing/shrinking phases, lock point, inserting lock/unlock instructions · Section B
Question.
What is starvation? Consider the following two transactions.
T1:
read(A);
read(B);
if A = 0 then B:=B+15% of B;
write(B);
T2:
read(B);
read(A);
if B = 0 then A:=A+20% of A;
write(A);
Add lock and unlock instructions to transaction T1 and T2, so that they observe the two phase locking protocol. Can the execution of these transactions result in a deadlock? Justify.
Answer.
Starvation:
Starvation occurs when a transaction waits indefinitely for a lock on a data item. This happens when a continuous stream of other concurrent transactions keeps obtaining compatible locks on that item. The waiting transaction cannot make progress.
Adding 2PL Instructions to T1 and T2:
Under Two-Phase Locking (2PL), all lock acquisitions must precede all unlock operations. T1 reads A (needs shared lock) and updates B (needs exclusive lock). T2 reads B (needs shared lock) and updates A (needs exclusive lock).
Transaction T1:
lock-S(A);
read(A);
lock-X(B);
read(B);
if A = 0 then B := B + 15% of B;
write(B);
unlock(A);
unlock(B);
Transaction T2:
lock-S(B);
read(B);
lock-X(A);
read(A);
if B = 0 then A := A + 20% of A;
write(A);
unlock(B);
unlock(A);
Deadlock Analysis and Justification:
Yes, the execution of these transactions can result in a deadlock.
Justification:
Consider the following interleaved execution sequence:
lock-S(A) and read(A). T1 holds a shared lock on A.lock-S(B) and read(B). T2 holds a shared lock on B.lock-X(B). Because exclusive mode conflicts with shared mode (by the lock-compatibility matrix, S and X are incompatible), T1 must wait for T2 to release B.lock-X(A). Because exclusive mode conflicts with shared mode (by the lock-compatibility matrix, S and X are incompatible), T2 must wait for T1 to release A.Now, T1 waits for T2, and T2 waits for T1. Under 2PL, neither transaction can unlock an item before acquiring all locks. A circular wait occurs:
Cycle: T1→T2→T1Neither transaction can make progress. Thus, a deadlock occurs.

Figure: Interleaved execution and wait-for graph cycle producing deadlock between T1 and T2 under 2PL
Topic: T11.4 · Deadlock: conditions, prevention vs detection, wait-for graph, victim selection · Section B
Question. Define deadlock. Explain how deadlock is prevented?
Answer.
Deadlock:
A deadlock is a condition in which two or more transactions are waiting indefinitely for locks held by each other. None of the transactions can continue without external intervention.
Deadlock Prevention Methods:
Deadlock prevention protocols ensure that the system never enters a deadlock state. Four standard schemes are:
Pre-declaration (Pre-claiming All Locks):
Each transaction must lock all required data items at once before execution begins. If any item is unavailable, no locks are granted and the transaction waits.
Drawbacks: Difficult to predict needed items beforehand. Data item usage is low.
Lock Ordering:
Impose a global ordering on all data items (d1<d2<⋯<dn). A transaction can only request a lock on item dj if it already holds locks on items that precede dj. Circular waits cannot form.
Timestamp-Based Schemes (Preemption and Rollback):
Each transaction Ti is assigned a unique timestamp TS(Ti) when it begins. The system compares timestamps to decide whether to wait or roll back:
| Scheme | When Ti requests item held by Tj | Type |
|---|---|---|
| Wait-Die | If Ti is older (TS(Ti)<TS(Tj)), Ti waits. If Ti is younger (TS(Ti)>TS(Tj)), Ti dies (rolls back). | Non-preemptive |
| Wound-Wait | If Ti is older (TS(Ti)<TS(Tj)), Ti wounds Tj (Tj rolls back). If Ti is younger, Ti waits. | Preemptive |
Timeout-Based Scheme:
A transaction waits for a lock for only a set amount of time. If the lock is not granted within the interval, the transaction times out and rolls back.

Figure: Wait-for Graph with a cycle indicating deadlock (Source: Deck 08, Slide 24)
Topic: T13.4 · Hashing: static vs dynamic · Section B
Question. What is hashing? Differentiate between static and dynamic hashing.
Answer.
1. What is Hashing?
Hashing is a search and data organization technique. It uses a mathematical function h(K), called a hash function. The function maps a search key K to the address of the bucket storing the record. A bucket is a storage unit, typically a disk block. Hashing provides direct O(1) average search time for equality queries without traversing tree pointers.
2. Differentiate between Static and Dynamic Hashing
| Feature | Static Hashing | Dynamic Hashing |
|---|---|---|
| Number of Buckets | Fixed at database creation time. | Adjusts dynamically as the database grows or shrinks. |
| Overflow Handling | Uses overflow bucket chains when a bucket fills up. | Buckets split or coalesce. Overflow chains are avoided or minimized. |
| Lookup Performance | Degrades over time. Long overflow chains require slow sequential scans. | Remains fast (O(1) disk accesses) even after substantial growth. |
| Reorganization | Requires periodic offline rebuilding of the whole file with a new hash function. | Reorganizes incrementally, one bucket at a time, without stopping database access. |
| Space Usage | Poor. Allocating few buckets causes overflow; allocating many wastes space. | High. Storage capacity scales smoothly with the actual number of records. |
| Common Examples | Modulo hashing with overflow chaining. | Extendable hashing and linear hashing. |
Figure 13.3: General extendable hash structure with bucket address table (Source: Textbook Ch. 24, Fig. 24.8).
Topic: T13.1 · Database security threats and authorization · Section B
Question. Describe four of the main threats to database security.
Answer.
Four main threats to database security and their countermeasures are:
SQL Injection:
Privilege Abuse and Unauthorized Access:
GRANT/REVOKE) and restricted SQL views.Data Eavesdropping and Leakage:
Denial of Service (DoS):
Topic: T07.2 · Triggers for security before and after a breach · Section B
Question. Using examples, discuss how Trigger can contribute to the security of database, before and after a security breach.
Answer.
Triggers protect database security at two stages: proactive prevention before a breach and forensic auditing after a breach.
BEFORE triggers act as real-time security gatekeepers. They evaluate incoming data modifications before changes reach the database.
SIGNAL SQLSTATE '45000'.Example (Blocking salary changes outside working hours):
DELIMITER //
CREATE TRIGGER trg_prevent_unauthorized_salary_update
BEFORE UPDATE ON employees
FOR EACH ROW
BEGIN
IF NEW.salary <> OLD.salary THEN
IF CURRENT_TIME() NOT BETWEEN '09:00:00' AND '17:00:00' THEN
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = 'Security Alert: Salary edits outside office hours are blocked';
END IF;
END IF;
END //
DELIMITER ;
AFTER triggers execute immediately after a modification succeeds on a table.
AFTER triggers write the unauthorized changes into an independent audit log table.USER(), NOW(), the modified table, and both OLD and NEW column values.Example (Logging security role modifications):
DELIMITER //
CREATE TRIGGER trg_audit_role_change
AFTER UPDATE ON user_roles
FOR EACH ROW
BEGIN
IF OLD.role <> NEW.role THEN
INSERT INTO security_audit_log (
user_id, old_role, new_role, changed_by, changed_at
) VALUES (
OLD.user_id, OLD.role, NEW.role, USER(), NOW()
);
END IF;
END //
DELIMITER ;
Short version for 2024 Q.2(a) (3 marks): State how BEFORE triggers block unauthorized actions with SIGNAL and how AFTER triggers record tamper-evident audit logs with USER() and timestamps. Provide one concise trigger example.
Topic: T08.6 · Define normalization (and its importance) & 1NF / 2NF / 3NF · Section B
Question. What is 1NF, 2NF and 3NF?
Answer.
First Normal Form (1NF):
A relation is in 1NF if and only if every attribute domain contains only atomic (indivisible) values, and each cell contains exactly one value. It strictly disallows multi-valued attributes, composite attributes, and repeating groups.
Second Normal Form (2NF):
A relation is in 2NF if and only if:
Third Normal Form (3NF):
A relation is in 3NF if and only if:
← Directory Overview | Explanation Layer | Original Question Paper | Next: 2018 →