Computer Science

DBMS Master Revision Handbook

Share this study resource

Help your exam peers & study groups prepare better

🗄️ DBMS / SQL — Master Revision Handbook

Database Management System | SQL | NoSQL | RDBMS | Architecture | Design
🚨 15+ Answer Key Bugs Detected & Fixed 📊 467 MCQs Analyzed 🎯 Exam-Ready | Hindi ⭐ High-Yield Only
🚨 EXAM TRAPS & ANSWER KEY BUGS — सर्वोच्च प्राथमिकता

🚨 Answer Key Bugs — गलत उत्तर चिह्नित हैं (Book WRONG → Correct सही)

विषयप्रश्न (संक्षिप्त)Book (❌)Correct (✅)कारण
BasicData कहाँ store होता है?(b) DBMS में(d) Database मेंDBMS = Manager, Database = Storage. दोनों अलग हैं।
DB Modelsसबसे पुराना DB model?(c) Network(a) HierarchicalHierarchical पहले आया (IBM IMS 1960s), फिर Network।
RDBMS'Attribute' क्या होता है?(b) Tuple (Row)(a) ColumnAttribute = Column/Field। Tuple = Row। सबसे ज़्यादा confuse होने वाला trap।
RDBMSRelational Model किससे संबंधित?(b) Structure+Integrity(c) Both a and b (सभी)Data Manipulation भी Relational Model का हिस्सा है।
KeysStudent table में Primary Key?(b) Dept(c) IDDept एक से ज़्यादा students में share होता है — PK नहीं बन सकता।
KeysRows क्या कहलाती हैं?(a) Relation(b) TuplesRelation = Table (पूरी), Tuple = Row। Book बिल्कुल गलत।
KeysFK — Referencing vs Referenced?ReferencingReferencedFK रखने वाली table = Referencing; FK जहाँ point हो = Referenced।
Rela. TypesRelational DB में किस type के relations?(c) Flat(b) NormalizedFlat-file और Relational DB अलग concepts हैं।
Rel. DegreeRelationship degree के types?(a) Binary only(d) All of aboveUnary, Binary, Ternary, N-ary — सभी valid degree types हैं।
DB DesignE-R Model किसने दिया?Dr. Edgar F. CoddPeter Chen (1976)🚨 MAJOR TRAP: Codd = Relational Model, Peter Chen = ER Model।
DesignRelational Model में tables को क्या कहते?(b) Records(c) Relations"Relational" शब्द ही answer देता है — tables = Relations।
DDL/DMLDDL नहीं है कौनसा? (SQL में)(a) RENAME only(d) UPDATERENAME = DDL (structure change)। UPDATE = DML (data change)।
DDL/DMLDML नहीं है कौनसा?(b) CREATE(d) TRUNCATETRUNCATE = DDL। CREATE भी DDL। Book ने गलत option mark किया।
NoSQLMongoDB किसमें लिखा गया?(a) JavaScript(b) C++MongoDB का core engine C++ में है। Query language JS है।
NoSQLDELETE rows के लिए SQL command?(d) REMOVE(a) DELETEREMOVE कोई valid SQL command नहीं है।
NoSQLNoSQL databases को refer किया जाता है?(b) Non-relational(c) "Not Only SQL"NoSQL = "Not Only SQL" — official correct expansion।
ManipulatingRecord management primitives?(c) Look-up only(d) All of aboveAdd, Delete, Look-up — तीनों primitive operations हैं।
GRANT/REVOKEGRANT/REVOKE किसमें आते हैं?कई books में DDLDCL (Data Control Language)🚨 Mock Test bug: GRANT/REVOKE = हमेशा DCL, कभी DDL नहीं।

⚠️ सबसे ज़्यादा Confuse होने वाले TRAPS

Attribute vs Tuple — सबसे ज़्यादा गलती
Attribute = Column/Field (vertical)
Tuple = Row/Record (horizontal)
Relation = Table (complete 2D)
🧠 A-ttribute = A column। T-uple = T-able row।
Referenced vs Referencing Relation
Referencing relation = जिसमें FK रखा जाता है (doing the referencing)
Referenced relation = जहाँ PK होती है जिसे FK point करता है
🧠 "Who has the FK" = Referencing। "Who has the PK" = Referenced।
ACID — Atomicity vs Durability Timeline Trap
Transaction के दौरान failure → Atomicity (Rollback)
Transaction Commit के बाद crash → Durability (Persist)
🧠 "Transaction सफल के बाद भी safe" = Durability (not Atomicity!)
ER Model — Aggregation Trap
"Relationships are treated as higher-level entities" पढ़ते ही Aggregation चुनो
Generalization ≠ Aggregation
🧠 Entity का एकीकरण = Generalization; Relationship का एकीकरण = Aggregation
WHERE vs HAVING — Aggregate Function
WHERE AVG(Salary) > 5000 ❌ Error देगा
HAVING AVG(Salary) > 5000 ✅ सही
🧠 W comes before H। WHERE = Worker level, HAVING = Head/Group level
UNION vs UNION ALL — Performance
UNION ALL > UNION (performance में तेज़)
क्योंकि UNION ALL sorting नहीं करता
🧠 UNION ALL = All Includes (बिना छानबीन)। UNION = Unique (extra work)
Codd vs Peter Chen — कभी मत भूलो
Edgar F. Codd → Relational Model (1970)
Peter Chen → E-R Model (1976)
Charles Bachman → First DBMS (IDS)
🧠 C for Codd = C for Columns/Relational। Chen = E-R = Entity Relationship
TRUNCATE — DDL या DML?
TRUNCATE = DDL (हमेशा)
Auto-committed है, Rollback नहीं होता
DELETE = DML, Rollback हो सकता है
🧠 TRUNCATE = Table Reset (structure change style)।
MySQL Full Outer Join Trap — "FULL OUTER JOIN हर Database में support होता है" → गलत
MySQL में FULL OUTER JOIN directly support नहीं होता। Method: LEFT JOIN ... UNION ... RIGHT JOIN

1. DBMS — मूल परिचय

TermFull Form / अर्थ
DBMSDatabase Management System
RDBMSRelational DBMS (tables में)
DDLData Definition Language
DMLData Manipulation Language
DCLData Control Language
TCLTransaction Control Language
DQLData Query Language (SELECT)
Important PersonsContribution
Charles BachmanWorld's First DBMS (IDS, 1960)
Edgar F. CoddRelational Model (1970), 12 Rules
Peter ChenE-R Model (1976)
Carlo Strozzi"NoSQL" term (1998)
🧠 B→C→P: Bachman (First DBMS) → Codd (Relational) → Peter Chen (ER Model)

2. DB Models — तुलना ⭐⭐

ModelStructureRelationsExampleकब efficient
HierarchicalTree (oldest)One-to-Many, ONE parent per childIBM IMSSmall transactions + Large data
NetworkGraphMany-to-Many, MULTIPLE parents allowedCODASYLComplex relationships
RelationalTables (Relations)All types via FK/joinsMySQL, OracleGeneral purpose (most used)
Object-OrientedObjectsClass hierarchyObjectDBComplex data types
🧠 Hierarchical = Family Tree (एक parent per child)। Network = Social Network (multiple parents)। "H before N" in alphabet = Hierarchical before Network (history wise)

3. ANSI/SPARC Three-Schema Architecture ⭐⭐

External Schema
= User View (partial)
External users जो देखते हैं
Multiple views हो सकती हैं
Conceptual Schema
= Complete Logical View
DBA के लिए entire DB का view
एक ही होती है
Internal Schema
= Physical Storage Structure
Disk पर कैसे store होगा
एक ही होती है
⚠️ Trap: 'Implementation Schema' — यह EXIST नहीं करता। Internal Schema = ANSI/SPARC में है, Implementation नहीं।
🧠 ECI = External, Conceptual, Internal — तीन real schemas।

4. Keys — Complete Summary ⭐⭐⭐

Key TypeपरिभाषाRules
Primary Key (PK)Unique + NOT NULL — एक table में एक हीNULL❌, Duplicate❌
Foreign Key (FK)दूसरी table की PK को refer करेReferential Integrity
Candidate KeyUniquely identify कर सके — सभी possible keysएक table में multiple हो सकती हैं
Alternate KeyCandidate Keys जो PK नहीं बनीं—
Unique KeyUnique values ensure करेNULL✅ (one allowed), Duplicate❌
Composite Keyदो या अधिक columns मिलकर PK—
Super KeyCandidate Key के superset (extra attributes के साथ)—
Primary = ONE per table, NO NULL | Unique = ONE NULL allowed | Candidate Keys = Multiple | All Candidate keys can uniquely identify rows

5. DDL / DML / DCL / TCL ⭐⭐⭐

CategoryFull FormCommandsAuto-Commit?Rollback?
DDLData Definition LanguageCREATE, ALTER, DROP, TRUNCATE, RENAME✅ हाँ❌ नहीं
DMLData Manipulation LanguageSELECT, INSERT, UPDATE, DELETE❌ नहीं✅ हाँ
DCLData Control LanguageGRANT, REVOKE✅ हाँ❌ नहीं
TCLTransaction Control LanguageCOMMIT, ROLLBACK, SAVEPOINT——
🚨 Bug: GRANT/REVOKE = हमेशा DCL। कई mock tests में इसे DDL में डाल देते हैं — गलत।

TRUNCATE vs DELETE vs DROP ⭐⭐

FeatureTRUNCATEDELETEDROP
CategoryDDLDMLDDL
क्या हटाता हैसभी Rows (data)Specific rows (WHERE से)पूरी Table structure + data
Rollback❌ नहीं✅ हाँ❌ नहीं
LogMinimal loggingFull row-level logging—
Speedतेज़धीमा (per row)—
Table Structureबना रहता हैबना रहता हैहट जाता है
💻 SQL — Complete Exam Reference

SQL Execution Order ⭐⭐⭐ — सबसे ज़्यादा पूछा जाता है

FROM → JOIN → WHERE → GROUP BY → HAVING → SELECT → DISTINCT → ORDER BY → LIMIT/TOP
  • FROM = Source table पहचानना
  • WHERE = Individual rows filter (Aggregates नहीं)
  • GROUP BY = Groups बनाना
  • HAVING = Groups filter (Aggregates यहाँ)
  • SELECT = Columns चुनना (Alias यहाँ define होता है)
  • ORDER BY = Sort करना (SELECT alias यहाँ use हो सकता है)
  • Alias को WHERE में USE नहीं कर सकते — SELECT बाद में execute होता है

WHERE vs HAVING ⭐⭐

FeatureWHEREHAVING
Filter करता हैIndividual Rows (Row-level)Groups (Group-level)
कब execute होता हैGROUP BY से पहलेGROUP BY के बाद
Aggregate Functions❌ नहीं (Error)✅ हाँ (SUM, COUNT, AVG...)
बिना GROUP BYअकेले काम करता हैपूरी table को 1 group मानता है
SQL Execution Order Trick: Fw Gh So
FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY

JOINs ⭐⭐⭐

JOIN TypeReturnsUnmatched Rows
INNER JOINकेवल Common (matching) recordsपूरी तरह गायब
LEFT OUTER JOINLeft table सभी + Right matchingRight side → NULL
RIGHT OUTER JOINRight table सभी + Left matchingLeft side → NULL
FULL OUTER JOINदोनों tables सभी recordsदोनों तरफ NULL possible
CROSS JOINCartesian Product (m × n)कोई condition नहीं
SELF JOINTable खुद से joinAlias अनिवार्य (e1, e2)
NATURAL JOINCommon column name पर auto joinNo common column → CROSS JOIN
🧠 Keyword trap: "even if doesn't exist / all records regardless" → LEFT या RIGHT JOIN चुनो (जो 'All' वाली table उस side हो)
⚠️ INNER JOIN Maximum rows ≤ m × n (Cartesian Product)। कभी exceed नहीं होगा।
MySQL में FULL OUTER JOIN नहीं होता → LEFT JOIN + UNION + RIGHT JOIN

Set Operations ⭐⭐

OperatorOutputDuplicatesPerformanceCommutative?
UNIONदोनों की सभी unique rowsRemove करता हैSlow (sorting)✅ A∪B = B∪A
UNION ALLदोनों की सभी rowsरखता है (Keeps)Fast ⚡✅ A∪B = B∪A
INTERSECTकेवल Common rowsRemove करता हैSlow✅ A∩B = B∩A
MINUS/EXCEPTपहले में से दूसरे को घटाओRemove करता हैSlow❌ A-B ≠ B-A
Set Operations की अनिवार्य शर्तें: ① दोनों queries में columns की संख्या समान ② Corresponding columns का data type compatible ③ Column names समान होना ज़रूरी नहीं (output = पहली query के column names)
ORDER BY केवल पूरी query के अंत में एक बार (individual SELECTs के साथ नहीं)

Subquery / Nested Query ⭐⭐

  • Inner Query पहले execute होती है
  • Inner Query result = Outer Query को देती है
  • WHERE या HAVING में use होती है
  • ANY = कम से कम एक से match (OR)
  • ALL = सभी से match (AND)
  • EXISTS = TRUE/FALSE (row exist करे तो TRUE)
🧠 ANY vs ALL:
ANY = At least one (OR condition)
ALL = Every single one (AND condition)
WHERE salary > ALL(subquery) = सबसे ज़्यादा MAX से भी ज़्यादा
WHERE salary > ANY(subquery) = कम से कम MIN से ज़्यादा

NOT IN vs NOT EXISTS — Null Trap ⭐

⚠️ Important: अगर Subquery में NULL आए तो:
NOT IN → पूरा result empty/NULL हो जाता है (NULL से compare = unknown)
NOT EXISTS → NULL का कोई ऐसा effect नहीं पड़ता (safer)

Indexing ⭐⭐

FeatureWith IndexWithout Index
Read (SELECT)✅ Fast — O(log N)❌ Slow — Full Table Scan O(N)
Write (INSERT/UPDATE)❌ Slower (index update)✅ Faster
Storage❌ Extra space लेता है✅ कम space
🧠 Index = Read Fast, Write Slow | Index = Extra Storage (reduces nothing)

File Organization: Hash vs B+ Tree ⭐⭐

FeatureHash OrganizationB+ Tree Organization
StructureHash Table / BucketsBalanced Search Tree (Leaf nodes linked)
Best forExact Match (WHERE id = 10)Range Query (BETWEEN, >, <, ORDER BY)
Sorting/ORDER BY❌ नहीं (unsupported)✅ हाँ (efficient)
Time ComplexityO(1) averageO(log N)
⚠️ Trap: "Hash O(1) है तो हमेशा बेहतर" — गलत। Range queries और ORDER BY में B+ Tree ही काम करता है।
🧠 Hash = Handshake (Exact person) | B+ Tree = Between/Bigger-Smaller (Range)
🔄 ACID Properties & Transactions

ACID Properties ⭐⭐⭐

PropertyCore MeaningExam KeywordResponsible Component
AtomicityAll or Nothing — पूरा या कुछ नहींRollback / Transaction के दौरान failureRecovery Manager
ConsistencyDB के नियम (constraints) कभी नहीं टूटेंगेValid State / Integrity ConstraintsUser / Programmer
IsolationConcurrent transactions एक-दूसरे को disturb नहीं करतेDirty Read / Concurrent executionConcurrency Control (Locks)
DurabilityCommit के बाद crash में भी data safeSystem Failure / Persist / DiskRecovery Manager (Log)
🚨 Timeline Trap:
Transaction के दौरान failure → Rollback → Atomicity
Transaction Commit के बाद crash → Data persist रहे → Durability
"Dirty Read problem" = Isolation का उल्लंघन

Concurrency Control Anomalies ⭐

Anomalyक्या होता हैSolution
Dirty ReadUncommitted data को दूसरा पढ़ लेIsolation / Locking
Non-Repeatable ReadSame query, अलग result (update के बाद)Higher Isolation Level
Phantom ReadSame query, नई rows appear हों (insert के बाद)Serializable Isolation
Lost Updateदो transactions एक-दूसरे का update overwrite करेंLocking

Cascading Rollback ⭐

Cascading Rollback: एक Transaction (T₁) fail → उसका Dirty Read करने वाले सभी Transactions (T₂, T₃...) भी Rollback होंगे → Chain Reaction
कारण: Dirty Read (Uncommitted Dependency)
बचाव: Cascadeless Schedule — कोई भी transaction, दूसरे का uncommitted data नहीं पढ़ सकता
Hierarchy: Strict ⊂ Cascadeless ⊂ Recoverable
🧠 Cascading = Waterfall (ऊपर गिरा तो नीचे सब गिरे)

Transaction States

Active → Partially Committed → Committed (success) | Active → Failed → Aborted (rollback)
📐 ER Model & Database Design

ER Diagram Symbols ⭐⭐⭐

SymbolRepresentsExample
Rectangle (आयत)EntityStudent, Employee
Double Rectangle (दोहरी आयत)Weak EntityDependent (of Employee)
Diamond (हीरा)RelationshipWorks-In
Ellipse (दीर्घवृत्त)AttributeName, Age
Double EllipseMultivalued AttributePhone Numbers
Dotted EllipseDerived AttributeAge (from DOB)
Underlined in EllipseKey AttributeStudent_ID
Dashed RectangleAggregationRelationship acting as Entity
🧠 Diamond = Relationship (diamond ring connects two people) | Rectangle = Entity | Ellipse = Attribute | Double = Weak/Multivalued

Generalization vs Specialization vs Aggregation ⭐⭐

ConceptApproachक्या होता हैER Symbol
GeneralizationBottom-Up ↑कई entities → एक Higher EntityTriangle (ISA)
SpecializationTop-Down ↓एक entity → कई sub-entitiesTriangle (ISA)
AggregationAbstractionRelationship → Higher Entity बन जाएDashed Rectangle
⚠️ "Relationships treated as higher-level entities" → Aggregation (Generalization नहीं!)
🧠 Ground→Sky = Generalization (Bottom-Up) | Sky→Ground = Specialization (Top-Down) | RA = Relationship to Aggregation

Strong Entity vs Weak Entity

Strong Entity:
✅ अपनी Primary Key होती है
✅ स्वतंत्र रूप से exist करती है
Symbol: Single Rectangle
Weak Entity:
❌ Primary Key नहीं होती
❌ Strong entity पर depend करती है
Symbol: Double Rectangle (दोहरी)
Discriminator/Partial key होती है

Normalization ⭐

Normal FormCondition
1NFकोई Repeating Groups नहीं, Atomic values (Multivalued attribute नहीं)
2NF1NF + No Partial Dependency (Non-key attributes पूरी PK पर depend)
3NF2NF + No Transitive Dependency
BCNF3NF + हर determinant एक Candidate Key होनी चाहिए
🌐 NoSQL Technology

NoSQL — परिचय ⭐⭐

  • NoSQL = "Not Only SQL" (NOT "Non-relational" ❌)
  • Schema-free — पहले structure define नहीं करना
  • Join-free — tables join नहीं होती
  • Big Data के लिए बना — Unstructured data
  • High Availability through distributed architecture
  • SQL से ज़्यादा flexible और faster development
NoSQL TypesExamples
DocumentMongoDB, CouchDB
Key-ValueRedis, DynamoDB (simplest)
ColumnCassandra, HBase
GraphNeo4j
🧠 D-K-C-G: Document, Key-value, Column, Graph

NoSQL vs SQL (RDBMS) ⭐

FeatureSQL (RDBMS)NoSQL
SchemaFixed (predefined)Flexible / Schema-free
ACID✅ Full ACID compliance❌ Generally BASE (eventually consistent)
ScalingVertical (scale up)Horizontal (scale out)
Data ModelTables (Relations)Document/Key-value/Graph/Column
Joins✅ Complex joins❌ Usually no joins
StorageRow-basedDocument=JSON/BSON; KV=Key-Value pairs

MongoDB Specifics ⭐

MongoDB TermRDBMS Equivalent
CollectionTable
DocumentRow / Record
FieldColumn / Attribute
_idPrimary Key
MongoDB core engine = C++ में लिखा है (JavaScript नहीं ❌ — JS shell के लिए है)

NoSQL Answer Key Bugs ⭐

🚨 Confirmed Bugs in NoSQL Questions:
① Impala = Cloudera का NoSQL tool (HBase नहीं) ✅
② NoSQL का aim = Non-relational data manage करना (broader claims गलत)
③ NoSQL से data extract = Query लिखनी और run दोनों करनी होती है
④ NoSQL = "Not Only SQL" (Non-relational नहीं — यह limited definition है)
⑤ TRUNCATE = DDL (book कई बार DML में count करती है — गलत)
🏗️ Architecture & Advanced Concepts

Database Architecture Types ⭐

ArchitectureDescriptionUse Case
1-TierStandalone — DB, application, user एक ही machineLocal development
2-TierClient-Server — Client application directly DB server सेTraditional enterprise apps
3-TierClient + Application Server + DB ServerWeb applications

Server Processes ⭐

Processकाम
Server ProcessQueries execute करना, results client को return करना
Lock ManagerLock grant, release, Deadlock detection
DB Writer ProcessBuffer से disk पर data write करना
Log Writer ProcessTransaction log write करना
Transaction-server system = Query-server system (Server side SQL process करता है)

Parallel Databases ⭐

Coarse-Granularity Parallelism:
Few processors (general-purpose)
Large data chunks
Fine-Granularity Parallelism:
Many specialized processors
Tiny data chunks
Degree of Parallelism = एक operation पर कितने parallel servers

Database Sharding vs Federation ⭐

FeatureShardingFederation
NatureHomogeneous (same schema)Heterogeneous (different schemas)
What splitsएक DB की Rows — अलग servers परकई independent DBs को एक window से जोड़ना
Autonomy❌ Shards independent नहीं✅ Each DB fully autonomous
CouplingTightly coupledLoosely coupled
🧠 Federation = Freedom (हर DB अपना boss) | Sharding = Shredding (एक DB को काट दिया rows में)

Important DBMS Facts — Quick Recall ⭐⭐

TopicKey Fact
Data DictionaryMetadata के बारे में metadata = System Catalog। DB के सभी objects describe करता है।
BufferDisk-to-Memory transfers minimize करता है। RAM में data cache।
DBADatabase Performance के लिए सबसे ज़्यादा जिम्मेदार
Data MiningDatabase पर directly काम करके patterns/knowledge निकालना
DynasetMS Access में query का result = Dynamic Set of records
GoogleSearch Engine है, DBMS नहीं (DBMS = Oracle, MySQL, DB2, MS Access)
Cloud: On-DemandHuman interaction के बिना resources provision करना = On-Demand Self-Service
Data HierarchyBit → Byte → Field → Record → File → Database
Master FileOriginal/Primary permanent data file of a system
Embedded SQLSQL code inside 3GL programs (C, Java, COBOL)
📌 One-Line Revision — Last Minute Rapid Recall
TopicOne-Line Fact
DBMS vs DatabaseDBMS = Manager/Software, Database = Storage. दोनों अलग।
Hierarchical (Oldest)IMS (IBM, 1960s)। Tree। One parent per child।
NetworkGraph। Multiple parents per child। CODASYL।
RelationalTables = Relations। Set concept। SQL। Codd ने बनाया।
Primary KeyUnique + NOT NULL। एक table में एक ही।
Foreign Keyदूसरी table की PK। Parent-Child relationship।
Unique KeyUnique। एक NULL allowed।
DDLCREATE ALTER DROP TRUNCATE RENAME — Structure बदलता है।
DMLSELECT INSERT UPDATE DELETE — Data बदलता है।
DCLGRANT REVOKE — Permissions control।
TCLCOMMIT ROLLBACK SAVEPOINT — Transaction control।
TRUNCATEDDL। Auto-committed। Rollback नहीं।
WHERERows filter। GROUP BY से पहले। Aggregates नहीं।
HAVINGGroups filter। GROUP BY के बाद। Aggregates ✅।
INNER JOINकेवल matching records।
LEFT JOINLeft table सभी + Right NULL।
CROSS JOINCartesian Product = m × n।
UNIONDuplicates हटाकर combine। Slow।
UNION ALLDuplicates रखकर combine। Fast।
INTERSECTकेवल common rows।
MINUS/EXCEPTपहले में से दूसरे को घटाओ। Non-commutative।
SubqueryInner query पहले run। Outer query को result देती है।
IndexRead fast, Write slow। Extra storage।
B+ TreeRange queries, ORDER BY। O(log N)।
HashExact match। O(1)। Range नहीं।
AtomicityTransaction दौरान failure → Rollback। All or Nothing।
DurabilityCommit के बाद crash → Data safe। Disk पर permanent।
IsolationConcurrent transactions interfere नहीं करते।
Dirty ReadUncommitted data पढ़ना → Isolation violation।
Cascading RollbackDirty Read → एक fail → सब fail। Cascadeless से बचाव।
GeneralizationBottom-Up। कई entities → एक। ISA triangle।
SpecializationTop-Down। एक entity → कई। ISA triangle।
AggregationRelationship → Entity। Dashed rectangle।
Weak EntityNo Primary Key। Depends on Strong entity। Double rectangle।
SchemaDB की logical structure। Instance = actual data at a time।
NoSQL"Not Only SQL"। Schema-free। Big Data। 4 types।
MongoDBDocument DB। C++ में written। Collection=Table, Document=Row।
Shardingएक DB को rows में split। Homogeneous। Autonomy खोना।
Federationकई DBs → एक window। Heterogeneous। Autonomy बनाए रखना।
SQL Execution OrderFROM→WHERE→GROUP BY→HAVING→SELECT→ORDER BY
Alias in WHERESELECT alias को WHERE में use नहीं कर सकते (execution order)।
🧠 All Memory Tricks — एक जगह
Codd vs Chen: C for Codd = C for Columns/Relational (1970). Chen = ER = Entity Relationship (1976). B for Bachman = B for Beginning (1st DBMS).
Execution Order (Fw Gh So): FROM → WHERE → GROUP BY → HAVING → SELECT → ORDER BY
ACID: A=Atomic(All/Nothing), C=Consistency(Valid), I=Isolated(No disturbance), D=Disk(Durable after commit)
Keys: Primary = ONE per table, Perfect (No NULL). Unique = U = 1 NULL allowed. Foreign = Foreign table की PK।
H before N: Hierarchical (oldest, 1960s) → Network → Relational. "H comes before N in alphabet"
DDL = Design, DML = Data, DCL = Cops (Security), TCL = Time-management
JOIN Selection: "all records regardless / even if doesn't exist" → LEFT JOIN। m×n = CROSS JOIN।
Diamond ♦ = Relationship (diamond ring connects two). Rectangle = Entity. Ellipse = Attribute.
ANY = at least one (OR), ALL = every single one (AND). "ALL" से बड़ा = MAX से भी बड़ा।
Index = Read Fast, Write Slow (किताब के पीछे index से पन्ना ढूंढना fast; बीच में नया पन्ना जोड़ना slow)
NoSQL Types D-K-C-G: Document, Key-value, Column, Graph
Cascading = Waterfall: ऊपर गिरा तो नीचे सब गिरे। बचाव = Dirty Read मत करो।
Federation = Freedom (हर DB अपना boss) | Sharding = Shredding (rows में काट दो)
Attribute = Column, Tuple = Row: A-ttribute = A column। T-uple = T-able row।
WHERE=Worker(Row-level), HAVING=Head(Group-level). W comes before H alphabetically।
NOT IN vs NOT EXISTS: NOT IN + NULL = empty result। NOT EXISTS = safer with NULLs।
🗄️ DBMS Master Revision Handbook | 467 MCQs Analyzed | 18 Answer Key Bugs Fixed | Rajasthan Exam Ready
Rajasthan Exam Twister Editorial Research Team
Rajasthan Exam Twister Research DeskSyllabus Verified

Curated by competitive exam specialists in Jaipur, Rajasthan. Facts, historical dates, and revision bullet points are strictly verified against official RPSC, RSSB, and Hindi Granth Academy reference materials.

Editorial Policy →
Official Telegram Community

राजस्थान प्रतियोगी परीक्षाओं के संपूर्ण PDF नोट्स पाने के लिए जुड़ें

REET, RPSC, CET, Patwar व Rajasthan Police परीक्षा हेतु डेली 10 फ्री क्विज़ पोल, हस्तलिखित नोट्स व मॉडल पेपर्स टेलीग्राम पर प्राप्त करें।

डेली फ्री क्विज़ पोलहस्तलिखित PDF नोट्सऑफ़िशियल अपडेट्स
Rajasthan Exam Twister

Comprehensive Preparation for Rajasthan Exams

Review detailed blog breakdowns, previous year papers, and topical revision handbooks.

Browse Blogs