Dbms Viva
Dbms Viva
Let me know if you’d like a PDF version or short answers for quick revision!
Sure! Here are answers to the most important viva ques ons from your DBMS experiment list—
these are the ones you're most likely to be asked:
4. What are primary keys, foreign keys, and NOT NULL constraints?
Primary Key: Uniquely iden fies each row in a table.
Foreign Key: Refers to a primary key in another table to maintain referen al integrity.
NOT NULL: Ensures a column cannot have NULL values.
9. What is a view?
A view is a virtual table created by a query. It simplifies access to complex queries and provides data
security.
Let me know if you want a printable version, or if you want the answers to be even shorter for quick
revision!
Great! Let’s now complete the answer set by covering the few remaining ques ons that were not
answered explicitly in the previous messages:
Already Answered:
Most of the answers were already given in the previous responses, but here are the ques ons that
were implicitly skipped or par ally addressed, now answered directly:
1. What is the difference between generaliza on, specializa on, and aggrega on in EER?
Generaliza on: Combines mul ple lower-level en es into a single higher-level en ty (e.g.,
Car and Bike become Vehicle).
Specializa on: Breaks a higher-level en ty into more specific sub-en es (e.g., Employee
specialized into Manager and Engineer).
Aggrega on: Treats a rela onship as an en ty (used when you want to relate rela onships to
other en es).
2. Can a view be updated?
Answer: Yes, but only if the view is based on a single table without:
o Aggregate func ons
o Group By or Dis nct
o Joins or subqueries
Otherwise, the view becomes read-only.
That now completes all the remaining unanswered or par ally covered parts from your experiment
list! If you’d like a compiled PDF of all Q&A for quick revision, just say the word!