(SEM VI) THEORY EXAMINATION 2024-25 BASICS OF DATA BASE MANAGEMENT SYSTEM

B.Tech General 0 downloads
₹29.00

BOE067 – Basics of Data Base Management System (B.Tech Sem VI)

All answers are written in simple, clear, humanized language, not in short points, and are prepared strictly as per the uploaded question paper (all 3 pages).
Reference: Uploaded Question Paper 


BOE067-BASICS-OF-DATA-BASE-MANA…

SECTION A

(Attempt all questions) — 2 × 7 = 14 marks


(a) Three levels of data abstraction in DBMS

DBMS provides three levels of data abstraction to hide complexity. The physical level describes how data is actually stored on disk. The logical level describes what data is stored and the relationships among data. The view level shows only the part of the database that a particular user needs, ensuring security and simplicity.


(b) Entity integrity vs referential integrity

Entity integrity ensures that the primary key of a relation is unique and never NULL, which guarantees that each record is uniquely identifiable.
Referential integrity ensures that a foreign key value must either match a primary key value in another table or be NULL, maintaining consistency between related tables.


(c) Difference between DDL and DML with example

DDL (Data Definition Language) is used to define or modify database structure. For example:

 

CREATE TABLE Student(id INT);

DML (Data Manipulation Language) is used to insert, update, or delete data. For example:

 

INSERT INTO Student VALUES(1);


(d) Prime and non-prime attributes

Relation: R(A, B, C, D, E)
FD set: { AB → C, B → E, C → D }

From B → E and AB → C → D, AB is a candidate key.
Prime attributes: A, B
Non-prime attributes: C, D, E


(e) When is a transaction rolled back?

A transaction is rolled back when a system failure occurs, a deadlock is detected, a constraint is violated, or the transaction cannot be completed successfully. Rollback restores the database to its previous consistent state.


(f) ACID properties of transaction

ACID stands for Atomicity, Consistency, Isolation, and Durability.
Atomicity ensures all operations execute completely or none.
Consistency ensures database rules are not violated.
Isolation ensures concurrent transactions do not affect each other.
Durability ensures committed data remains permanent even after failures.


(g) Lock in transaction management

A lock is a mechanism used to control access to data items during transactions. It prevents conflicts by allowing only authorized transactions to read or write data at a given time, ensuring consistency.


SECTION B

(Attempt any three) — 7 × 3 = 21 marks


(a) E-R design for sports league database

Each Team has many Players, and each Game involves multiple teams. Not all players participate in every game. The relationship Participation connects Player, Team, and Game, storing attributes such as position played and game result.

Relational Mapping:

Team(TeamID, TeamName)

Player(PlayerID, Name, TeamID)

Game(GameID, Date, Result)

Participation(PlayerID, GameID, Position)


(b) Testing serializability & conflict equivalence

Two schedules are conflict equivalent if conflicting operations occur in the same order.

S1: R1(A), R2(B), W1(A), W2(B)
S2: R2(B), R1(A), W2(B), W1(A)

In S1, T1 writes A before T2 writes B.
In S2, T2 writes B before T1 writes A.
Hence, S1 and S2 are NOT conflict equivalent.


(c) Log and database recovery techniques

A log records all transaction activities in sequential order. It is maintained on stable storage.
In deferred modification, updates are written only after commit.
In immediate modification, updates are written before commit but can be undone using logs.


(d) Types of users and role of DBA

DBMS users include naïve users, application programmers, sophisticated users, and database administrators.
A DBA manages database design, security, backup, recovery, performance tuning, and access control, while an end user only accesses data.


(e) Aggregate functions in SQL

Aggregate functions perform calculations on a set of values. Common functions include COUNT, SUM, AVG, MAX, and MIN.
Example:

 

SELECT AVG(Marks) FROM Student;


SECTION C

(Attempt any one) — 7 marks


(a) SQL table creation and insertion

 

CREATE TABLE STUDENT ( StudentID INT PRIMARY KEY, Name VARCHAR(50) NOT NULL, Age INT, Department VARCHAR(30), Marks INT CHECK (Marks >= 0) );

 

INSERT INTO STUDENT VALUES (1,'RAM',20,'CSE',85); INSERT INTO STUDENT VALUES (2,'SHYAM',21,'IT',78); INSERT INTO STUDENT VALUES (3,'MOHAN',22,'ECE',90);


(b) Database security layers

Physical security protects hardware, OS-level security protects operating systems, network security protects data during transmission, and database-level security controls user access. Together, they form a strong defense system.

File Size
148.14 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Spoken English Classes Near By Hari Nagar Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Hari Nagar, Delhi
Social Science Classess Dwarka Mor, Delhi
Spanish Language Classes Near Uttam Nagar – Learn Spanish with Confidence Uttam Nagar, Delhi
SEO Training Classes Near Kirti Nagar – Master Search Engine Optimization Kirti Nagar, Delhi
Video Editing Classes Near By Dwarka Mor – Master Professional Editing Skills Dwarka Mor, Delhi
Music Theory & Composition Classes Near By Najafgarh – Build Your Musical Foundation Najafgarh, Delhi
Spoken English Classes Near Rajouri Garden Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Rajouri Garden, Delhi
Yoga Classes Near Saket Transform Your Mind, Body & Lifestyle with Professional Yoga Training in 2026 Saket, Delhi
🇫🇷 French Language Classes Near Sector 112 Noida – Learn French with Expert Trainers Noida
Digital Marketing Classes Near Noida Sector 98 – Learn Modern Marketing Skills and Build a Successful Career Expressway, Sector 98, Noida, Noida
Tailoring & Stitching Classes Near Sector 81A Gurugram – Learn Professional Garment Making Skills Sector 81A, Gurugram
Data Analytics Training Near Noida Sector 94 – Learn Data Skills and Build a High-Demand Career Noida
Economics Classes Near By Dwarka Mor Build Strong Conceptual Clarity & Score High Dwarka Mor, Delhi
Study Abroad Consultation Near Sector 101 Dwarka Expressway, Gurugram – Your Gateway to Global Education Gurugram
Data Analytics Classes Near Kirti Nagar – Build a Future-Ready Career in Data Kirti Nagar, Delhi
High Profit Margin Business Opportunities Near Sector 109 Gurugram (Dwarka Expressway) Gurugram
Digital Marketing Classes Near Noida Sector 96 – Learn Modern Marketing Skills and Build a Successful Career Noida
Resume & Interview Coaching Near Sector 102 Gurugram (Dwarka Expressway) – Build Confidence, Crack Interviews, Get Hired Sector 102, Gurugram
Language Classes Near Tilak Nagar – Learn, Speak & Grow with Confidence Tilak Nagar, Delhi
Competitive Exam Coaching Near Dwarka Mor Complete Preparation for Government & Entrance Exams with Expert Guidance Dwarka Mor, Delhi
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020