Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

DBMS → Introduction to DBMS 33

A ternary relationship has degree
3
click to copy
ISA hierarchy in ER represents
Specialization and generalization inheritance
click to copy
Generalization is which process?
Bottom-up: combining similar entities into a superclass
click to copy
Specialization is which process?
Top-down: dividing superclass into specialized subclasses
click to copy
Disjoint ISA constraint means
Entities can be in AT MOST ONE subclass
click to copy
Overlapping ISA constraint means
Entities can belong to MULTIPLE subclasses simultaneously
click to copy
Total completeness means
Every superclass entity MUST belong to at least one subclass
click to copy
Aggregation in ER treats
A relationship set as an abstract entity to participate in another relationship
click to copy
In min-max notation (0,N) on a relationship side means
Zero (optional) to many
click to copy
In min-max notation (1,1) means
At least one and at most one (mandatory, exactly once)
click to copy
Weak entity PK is formed by
Discriminator plus owner entity's primary key
click to copy
Partial participation means
Only SOME entity instances participate in the relationship
click to copy
A regular entity has
Its own key attribute and exists independently
click to copy
M:N cardinality means
Each entity can relate to many instances on the other side
click to copy
Students enroll in courses is what cardinality?
M:N
click to copy
Employee assigned one parking space is what cardinality?
1:1
click to copy
Key attribute in ER is shown with
Underlined attribute name
click to copy
An associative entity (junction entity) is used when
M:N relationship needs its own attributes
click to copy
M:N relationship requires in relational schema
Junction table with FKs to both entity tables
click to copy
Relational Algebra is
Procedural: specifies what and HOW to get data
click to copy
Selection operator σ selects
Rows satisfying a condition from a relation
click to copy
Projection operator π extracts
Specific columns (attributes) from a relation
click to copy
For Union R∪S to be valid R and S must be
Union-compatible: same degree and compatible domains
click to copy
R∩S returns
Tuples present in BOTH R and S
click to copy
R−S returns
Tuples in R that do NOT exist in S
click to copy
Cartesian product R×S produces
All possible combinations of tuples from R and S
click to copy
Renaming operator in relational algebra is
ρ
click to copy
Division R÷S is useful for
Universal quantification queries (for all/every conditions)
click to copy
Five basic RA operators are
σ,π,∪,−,× (selection,projection,union,difference,cross-product)
click to copy
If |R|=5 rows and |S|=4 rows, R×S has
20 rows
click to copy
R∩S expressed using basic operators equals
R−(R−S)
click to copy
SQL stands for
Structured Query Language
click to copy
SELECT retrieves
Data from one or more tables
click to copy

DBMS → ER Model 2

ER diagrams are created in which design phase?
Conceptual design
click to copy
ER diagram to relational schema: each entity becomes
A table (relation)
click to copy

DBMS → Joins 4

Theta join R⊲⊳θS equals
σθ(R×S)
click to copy
Equijoin uses which condition operator
= (equality)
click to copy
Natural join joins on
All attributes with same name in both relations
click to copy
Anti-join R▷S returns
Tuples in R that have NO matching tuple in S
click to copy

DBMS → SQL Basics 1

WHERE clause filters
Individual rows BEFORE grouping based on condition
click to copy