DBMS Viva Q&a
DBMS Viva Q&a
1 Q: What is DBMS?
A: A DBMS (Database Management System) is software that is used to manage databases. It allows
users to store, retrieve, update, and delete data efficiently.
2 Q: What is the difference between DBMS and RDBMS?
A:
o DBMS stores data as files; RDBMS stores data in tabular form.
o RDBMS supports relational constraints like primary keys and foreign keys; DBMS does not
necessarily support this.
o RDBMS follows normalization; DBMS may not.
3 Q: What is a primary key?
A: A primary key is a column or a set of columns in a table that uniquely identifies each row. It cannot
have NULL values or duplicates.
4 Q: What is a foreign key?
A: A foreign key is a field (or collection of fields) in one table that refers to the primary key in another
table. It enforces referential integrity.
INSERT INTO student (id, name, age) VALUES (1, 'John', 20);
INNER JOIN
LEFT JOIN (or LEFT OUTER JOIN)
RIGHT JOIN (or RIGHT OUTER JOIN)
FULL JOIN (or FULL OUTER JOIN)
SELF JOIN
CROSS JOIN
PRIMARY KEY doesn't allow NULL and only one per table.
UNIQUE allows one or more NULLs and can have multiple in a table.
Single-row subquery
Multiple-row subquery
Correlated subquery
Nested subquery
37. Q: What is the difference between INNER JOIN and OUTER JOIN?
A: