dbms-lab-viva-questions
dbms-lab-viva-questions
lOMoARcPSD|49325232
2. Advantages of DBMS
• Redundancy of data avoided.
• Restricted and protected access to data.
• Permanent/Persistent storage for program objects.
• Back up recovery services. Efficient query processing.
• Storage structure and indices for efficient query processing and
retrieval.
3. What is DML?
• Data Manipulation Language.
• High level non procedural language (SQL).
• Can be embedded into programming languages.
• CRUD operations to create, read, update, and delete data
4. Commands of DML
• INSERT, SELECT, UPDATE and Delete commands.
• SELECT, INSERT, UPDATE, DELETE, MERGE in SQL
7. Types of abstraction
• Internal Level or Physical Level- Physical storage structure of
the database
• Conceptual or Logical Level- Describes the Database structure of
the whole database
• External or View level- related to the data, which is viewed by
specific end users, nearest to the user.
3
lOMoARcPSD|49325232
• Refers to each specific object in the mini world.
• Physical or conceptual.
• Entities have attributes. Weak or Strong entity.
13.Types of attributes.
• Simple and composite.
• Single values and multivalued.
• Stored or derived – dotted line. (age derived from DOB)
Complex attributes.
4
lOMoARcPSD|49325232
18. What is normalization?
• Reducing Null entries. Can’t achieve through ER Diagram.
OR
• Splitting a single table DB (flat file) into multiple tables (relational
DB)
5
lOMoARcPSD|49325232
24. Drop vs truncate
• DROP - remove table definition and its contents TRUNCATE-
delete all the rows from the table
6
lOMoARcPSD|49325232
• Primary key
• Unique key
• Foreign key
34.What is database?
• Collection of data
• Logically coherent collection Specific purpose
7
lOMoARcPSD|49325232
35. What is superkey?
Set of attributes with:
1. No 2 tuples having same value for SK.
8
lOMoARcPSD|49325232
36.What is key?
A minimal SK such that removing any one attribute from its set,
destroys the uniqueness property.
KEY IS SUPERKEY NOT VICE VERSA.
37. What is drop?
• delete a whole database or just a table.
• The DROP statement destroys the objects