Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
160 views
25 pages
Top 18 DBMS Interview Q&a
Uploaded by
lokopod551
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save TOP 18 DBMS INTERVIEW Q&A For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
160 views
25 pages
Top 18 DBMS Interview Q&a
Uploaded by
lokopod551
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save TOP 18 DBMS INTERVIEW Q&A For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 25
Search
Fullscreen
Content Basic DBMS Interview Questions . What is meant by DBMS and what is its utility? Explain RDBMS with examples. e What is meant by a database? 3. Mention the issues with traditional file-based systems that make DBMS a better choice? 4. Explain a few advantages of a DBMS. 5. Explain different languages present in DBMS. 6. What is meant by ACID properties in DBMS? = Are NULL values in a database the same as that of blank space or zero? Interme: 8, What is meant by Data Warehousing? 9. Explain different levels of data abstraction in a DBMS. 10. What is meant by an entity-relationship (E-R) model? Explain the terms Entity, Entity Type, and Entity Set in DBMS. 11. Explain different types of relationships amongst tables in a DBMS. 12. Explain the difference between intension and extension in a database. 13. Explain the difference between the DELETE and TRUNCATE command ina DBMS. 14. Whats a lock. Explain the major difference between a shared lock and an exclusive lock during a transaction ina database. . What is meant by normalization and denormalization? [Advanced DBMS Interview Questions 16. Explain different types of Normalization forms in a DBMS. 17. Explain different types of keys in a database. Page @iptut kumar(.....Continued) 18. Explain the difference between a 2-tier and 3-tier architecture in a DBMS. Page2 @ptut kumarLet's get Started To consolidate your knowledge and concepts in DBMS, here we've listed the most commonly asked DBMS interview questions to help you ace your interview! Basic DBMS Interview Questions 1. What is meant by DBMS and what is its utility? Explain RDBMS with examples. As the name suggests DBMS or Database Management System is a set of applications or programs that enable users to create and maintain a database. DBMS provides a tool or an interface for performing various operations such as inserting, deleting, updating, etc. into a database. It is software that enables the storage of data more compactly and securely as compared to a file-based system. A DBMS system helps a user to overcome problems like data inconsistency, data redundancy, etc. ina database and makes it more convenient and organized to use it. Examples of popular DBMS systems are file systems, XML, Windows Registry, etc. ail —— iysatoracte.ete) (Website code) Page3 @Yptut kumarRDBMS stands for Relational Database Management System and was introduced in the 1970s to access and store data more efficiently than DBMS. RDBMS stores data in the form of tables as compared to DBMS which stores data as files. Storing data as rows and columns makes it easier to locate specific values in the database and makes it more efficient as compared to DBMS. Examples of popular RDBMS systems are MySQL, Oracle DB, etc. 2. What is meant by a database? A Database is an organized, consistent, and logical collection of data that can easily be updated, accessed, and managed. Database mostly contains sets of tables or objects (anything created using create command is a database object) which consist of records and fields. A tuple or a row represents a single entry in a table. An attribute or acolumn represents the basic units of data storage, which contain information about a particular aspect of the table. DBMS extracts data from a database in the form of queries given by the user. 3. Mention the issues with traditional file-based systems that make DBMS a better choice? The absence of indexing in a traditional file-based system leaves us with the only option of scanning the full page and hence making the access of content tedious and super slow. The other issue is redundancy and inconsistency as files have many duplicate and redundant data and changing one of them makes all of them inconsistent. Accessing data is harder in traditional file-based systems because data is unorganized in them. Another issue is the lack of concurrency control, which leads to one operation locking the entire page, as compared to DBMS where multiple operations can work ona single file simultaneously. Integrity check, data isolation, atomicity, security, etc, are some other issues with traditional file-based systems for which DBMSs have provided some good solutions. 4. Explain a few advantages of a DBMS. Following are the few advantages of using a DBMS. Pages peat kumarData Sharing: Data from a single database can be simultaneously shared by multiple users. Such sharing also enables end-users to react to changes quickly in the database environment. Integrity constraints: The existence of such constraints allows storing of data in an organized and refined manner. Controlling redundancy in a database: Eliminates redundancy in a database by providing a mechanism that integrates all the data in a single database. Data Independence: This allows changing the data structure without altering the composition of any of the executing application programs. Provides backup and recovery facility: It can be configured to automatically create the backup of the data and restore the data in the database whenever required. Data Security: DBMS provides the necessary tools to make the storage and transfer of data more reliable and secure. Authentication (the process of giving restricted access to a user) and encryption (encrypting sensitive data such as OTP, credit card information, etc.) are some popular tools used to secure data in aDBMS. 5. Explain different languages present in DBMS. Pages @ peat kumarFollowing are various languages present in DBMS: * DDL(Data Defi n Language): It contains commands which are required to define the database. E.g., CREATE, ALTER, DROP, TRUNCATE, RENAME, etc. DML(Data Manipulation Language): It contains commands which are required to manipulate the data present in the database. E.g., SELECT, UPDATE, INSERT, DELETE, etc. DCL(Data Control Language): |t contains commands which are required to deal with the user permissions and controls of the database system. E.g., GRANT and REVOKE. TCL(Transaction Control Language): It contains commands which are required to deal with the transaction of the database. E.g., COMMIT, ROLLBACK, and SAVEPOINT. 6. What is meant by ACID properties in DBMS? ACID stands for Atomicity, Consistency, Isolation, and Durability in a DBMS these are those properties that ensure a safe and secure way of sharing data among multiple users. A Homie Allchanges to the data must be performed successfully or not at all Consistent Data must be in a consistent state before and after the transaction | lsolated No other process can change the data while the transaction is running D Durable The changes made by a transaction must persist Pages Capt kumar* Atomicity: This property reflects the concept of either executing the whole query or executing nothing at all, which implies that if an update occurs ina database then that update should either be reflected in the whole database or should not be reflected at all. A B Before $30 praaster, Before $100 Debit $10 ——}€—> Credit $10 Available $20 Process Available $110 Debited Credited Successfully Successfully Partial Execution No Atomicity Excution Termination A B Before $30 Before $100 Debit $10 Transfer Credit $10 Available $20 — > available $110 Process Debited Credited Successfully ‘Successfully Complete Execution ‘Atomicity Execution Successfull Page7 @aptut kumar* Consistency: This property ensures that the data remains consistent before and after a transaction in a database. A Before $300 Debit toe $50 > Avitabte —————— Debit toc $20 ‘vallable $230 Palee read Value Read By = 00 T c=250 Seer beforeT é a ae ie |_[eae $100 before 350 Gan a Credit $20, a ue ‘available $70 Data Consistent © Isolation: This property ensures that each transaction is occurring independently of the others. This implies that the state of an ongoing transaction doesn’t affect the state of another ongoing transaction. Pages @ pet kumarA [ —— Vahereadiysteore =i] SB Ties $100 Before $100 pant ee ce ee [> aailable $20 Debit toc $20 n ‘eatin $70 ‘Available Seo Value read byCBelore Twas $80, n ic Before $70 — credittos $20 ‘Available $90 Isolation - Independent execution Ti and T2 by A © Durability: This property ensures that the data is not lost in cases of a system failure or restart and is present in the same state as it was before the system failure or restart. 7. Are NULL values in a database the same as that of blank space or zero? No, a NULL value is very different from that of zero and blank space as it represents a value that is assigned, unknown, unavailable, or not applicable as compared to blank space which represents a character and zero represents a number. Example: NULL value in “number_of_courses” taken by a student represents that its value is unknown whereas 0 in it means that the student hasn’t taken any courses. Intermediate DBMS Interview Questions 8. What is meant by Data Warehousing? a Qa kumardata warehouse can be considered as a central repository where data flows from transactional systems and other relational databases and is used for data analytics. A data warehouse comprises a wide variety of organization’s historical data that supports the decision-making process in an organization. | as + OLAP Analysis 4 Data Warehouse | —» Reporting N Data Mining 9. Explain different levels of data abstraction in a DBMS. The process of hiding irrelevant details from users is known as data abstraction. Data abstraction can be divided into 3 levels: Page 10 @ epee kumarPhysical level ‘Three levels of data abstraction Physical Level: it is the lowest level and is managed by DBMS. This level consists of data storage descriptions and the details of this level are typically hidden from system admins, developers, and users. Conceptual or Logical level: it is the level on which developers and system admins work and it determines what data is stored in the database and what is the relationship between the data points. External or View level: it is the level that describes only part of the database and hides the details of the table schema and its physical storage from the users. The result of a query is an example of View level data abstraction. A viewis a virtual table created by selecting fields from one or more tables present in the database. 10. What is meant by an entity-relationship (E-R) model? Explain the terms Entity, Entity Type, and Entity Set in DBMS. An entity-relationship model is a diagrammatic approach to a database design where real-world objects are represented as entities and relationships between them are mentioned. Pe i oe @aptu kumarSample E-R Diagram Entity: An entity is defined as a real-world object having attributes that represent characteristics of that particular object. For example, a student, an employee, or a teacher represents an entity. © Entity Type: An entity type is defined as a collection of entities that have the same attributes. One or more related tables in a database represent an entity type. Entity type or attributes can be understood as a characteristic which uniquely identifies the entity. For example, a student represents an entity that has attributes such as student_id, student_name, etc. © Entity Set: An entity set can be defined as a set of all the entities present in a specific entity type in a database. For example, a set of all the students, employees, teachers, etc. represent an entity set. 11. Explain different types of relationships amongst tables ina DBMS. Following are different types of relationship amongst tables in a DBMS system: © One to One Relationship: This type of relationship is applied when a particular row in table X is linked to a singular row in table Y. Page 12 Or ul Kumarmmm a pt * One to Many Relationship: This type of relationship is applied when a single row in table X is related to many rows in table Y. Sm a pt © Many to Many Relationship: This type of relationship is applied when multiple rows in table X can be linked to multiple rows in table Y. n> © Self Referencing Relationship: This type of relationship is applied when a particular row in table X is associated with the same table. Page 13 @aptut kumar12. Explain the difference between intension and extension ina database. Following is the major difference between intension and extension in a database: * Intension: Intension or popularly known as database schema is used to define the description of the database and is specified during the design of the database and mostly remains unchanged. * Extension: Extension on the other hand is the measure of the number of tuples present in the database at any given point in time. The extension of a database is also referred to as the snapshot of the database and its value keeps changing as and when the tuples are created, updated, or destroyed in a database. 13. Explain the difference between the DELETE and TRUNCATE command in a DBMS, DELETE command: this command is needed to delete rows from a table based on the condition provided by the WHERE clause. Page 14 @aptu kumar* It deletes only the rows which are specified by the WHERE clause. * It can be rolled back if required. * It maintains a log to lock the row of the table before deleting it and hence it’s slow. TRUNCATE command: this command is needed to remove complete data from a table in a database. It is like a DELETE command which has no WHERE clause. * It removes complete data from a table in a database. © Itcan be rolled back even if required. © It doesn’t maintain a log and deletes the whole table at once and hence it’s fast. 14. Whatis a lock. Explain the major difference between a shared lock and an exclusive lock during a transaction ina database. A database lock is a mechanism to protect a shared piece of data from getting updated by two or more database users at the same time. When a single database user or session has acquired a lock then no other database user or session can modify that data until the lock is released. © Shared Lock: A shared lock is required for reading a data item andimany Multiple transactions are allowed to read the data items in a shared lock. * Exclusive lock: An exclusive lock is a lock on any transaction that is about to perform a write operation. This type of lock doesn’t allow more than one transaction and hence prevents any inconsistency in the database. 15. What is meant by normalization and denormalization? Normalization is a process of reducing redundancy by organizing the data into multiple tables. Normalization leads to better usage of disk spaces and makes it easier to maintain the integrity of the database. age @xpest comerAdvanced DBMS Interview Questions 16. Explain different types of Normalization forms in a DBMS. Following are the major normalization forms in a DBMS: [—> First Normal Form (1NF) [> second Normal Form (2NF) Normal Forms in DBMS [> Third Normal Form (2NF) Ly» Boyce-Cold Normal Form (BCNF) Page 16 @ apt kumarFullNames Physical Address, Movies Rented Salutation Janet ones FetsreetPiotnos | Piste hecarbbeen | yy, Robert hil aedsteet 4 ese eseet aoe Te | Robert Phil ‘Sth Avenue Clash of the Titans Me. Considering the above Table-1 as the reference example for understanding different normalization forms. * INF: It is known as the first normal form and is the simplest type of normalization that you can implement in a database. A table to be in its first normal form should satisfy the following conditions: © Every column must have a single value and should be atomic. © Duplicate columns from the same table should be removed. © Separate tables should be created for each group of related data and each Page 17 @aptut camerFull Names Physical Address | Movies Rented Salutation Janet Jones Firststreet PlotNo4 | Pirates.the Caribbean || Ms, Janet Jones Firststreet Plot No4 | clashof the Titans Ms, Robert Phil 3rd street 34 Forgetting Sarah Marshal || Mr. Robert Phil 3rd street 34 Daddy's Little Girls Mr Robert Phil sth Avenue Clash ofthe Titans Me. Table-1 converted to LNF form © 2NF: It is known as the second normal form. A table to be in its second normal form should satisfy the following conditions: © The table should be in its 1NF i.e. satisfy all the conditions of INF. © Every non-prime attribute of the table should be fully functionally dependent on the primary key i.e. every non-key attribute should be dependent on the primary key in such a way that if any key element is deleted then even the non_key element will be saved in the database. Membership ID || Full Names Physical Address Salutation 1 Janet Jones First street Plot No 4 Ms. | 2 Robert Phil rd street 34 Mr 3 Robert Phil sth Avenue Mr. | Page 18 @aptu kumarMembership 1D Movies Rented Pirates the Caribbean Clash ofthe Titans Forgetting Sarah Marshal Daddy’ ttle Gis Clash ofthe Titans Breaking Table-1 into 2 different tables to move it to 2NF. © 3NF: It is known as the third normal form. A table to be in its second normal form should satisfy the following conditions: © The table should be in its 2NF i.e. satisfy all the conditions of 2NF. © There is no transitive functional dependency of one attribute on any attribute in the same table. Membership 1D | Full Names Physical Address SalutationID i ‘Janet Jones || First street Ptot No # 2 2 Robert Phil 3d street 34 1 3 Robert Phil || Sth Avenue 1 Page 19 @ap kumarMembership ID Movies Rented Pirates. the Caribbean Clash afthe Titans Forgetting Sarah Marshal Daddy's ttle Girls Clash ofthe Titans Salutation ID Salutation al Mr. 2 Ms. 3) Mrs. 4 Dr. preakine Ti f itt - F © BCNF: BCNF stands for Boyce-Codd Normal Form and is an advanced form of 3NF. It is also referred to as 3.5NF for the same reason. A table to be in its BCNF normal form should satisfy the following conditions: © The table should be in its 3NF i.e. satisfy all the conditions of 3NF. © For every functional dependency of any attribute A on B (A->B), A should be the super key of the table. It simply implies that A can’t be anon-prime attribute if B is a prime attribute. Page 20 @aptut kumar17. Explain different types of keys in a database. There are mainly 7 types of keys in a database: * Candidate Key: The candidate key represents a set of properties that can uniquely identify a table. Each table may have multiple candidate keys. One key amongst all candidate keys can be chosen as a primary key. In the below example since studentld and firstName can be considered as a Candidate Key since they can uniquely identify every tuple. Super Key: The super key defines a set of attributes that can uniquely identify a tuple. Candidate key and primary key are subsets of the super key, in other words, the super key is their superset. Super Key Candidate Key Primary Key Page2a @apretvamerPrimary Key: The primary key defines a set of attributes that are used to uniquely identify every tuple. In the below example studentid and firstName are candidate keys and any one of them can be chosen as a Primary Key. In the given example studentid is chosen as the primary key for the student table. Unique Key: The unique key is very similar to the primary key except that primary keys don’t allow NULL values in the column but unique keys allow them. So essentially unique keys are primary keys with NULL values. Alternate Key: All the candidate keys which are not chosen as primary keys are considered as alternate Keys. In the below example, firstname and lastname are alternate keys in the database. Foreign Key: The foreign key defines an attribute that can only take the values present in one table common to the attribute present in another table. In the below example courseld from the Student table is a foreign key to the Course table, as both, the tables contain courseld as one of their attributes. Composite Key: A composite key refers to a combination of two or more columns that can uniquely identify each tuple in a table. In the below example the studentld and firstname can be grouped to uniquely identify every tuple in the table. Candidate Key | [Alternate Key [__ Foreign Key Primary Key So ee ee OS s lastname | couserid couserié | couseNare Black 004 ‘Accounts lames | artadine coo2 Computing [[tooozseo [Amanda | Holiand P30 History tooo11se | Simon McCloud 5 [_tooasaa7 | Peter Murray 0018453 | Anne Mon 504? Primary Key Student Table Relationship Between Keys Page22 @aptut Kumar18. Explain the difference between a 2-tier and 3-tier architecture in a DBMS. The 2-tier architecture refers to the client-server architecture in which applications at the client end directly communicate with the database at the server end without any middleware involved. Example - Contact Management System created using MS-Access or Railway Reservation System, etc. Gee ES sptaion L a u P - 5 ina DB The 3-tier architecture contains another layer between the client and the server to provide GUI to the users and make the system much more secure and accessible. In this type of architecture, the application present on the client end interacts with an application on the server end which further communicates with the database system. Example - Designing registration form which contains a text box, label, button or a large website on the Internet, etc. Page23 @peut Kumarei Oi i> lol Qi? 24
You might also like
DBMS UNIT 1 NOTES
PDF
No ratings yet
DBMS UNIT 1 NOTES
28 pages
Dbms Notes
PDF
No ratings yet
Dbms Notes
224 pages
UNIT1-DBMS
PDF
No ratings yet
UNIT1-DBMS
27 pages
Final- Ch1 Database System Concepts (1)
PDF
No ratings yet
Final- Ch1 Database System Concepts (1)
65 pages
Introduction To Database:: Schedule A Mock Interview at WWW - Eguru.ooo
PDF
No ratings yet
Introduction To Database:: Schedule A Mock Interview at WWW - Eguru.ooo
29 pages
DBMS Full Notes
PDF
No ratings yet
DBMS Full Notes
49 pages
DBMS Final Notes
PDF
No ratings yet
DBMS Final Notes
30 pages
dbms unit 1
PDF
No ratings yet
dbms unit 1
15 pages
Dbms Unit 1 Ppts
PDF
No ratings yet
Dbms Unit 1 Ppts
37 pages
Dbms
PDF
No ratings yet
Dbms
21 pages
DBMS Unit -1 - Part-1
PDF
No ratings yet
DBMS Unit -1 - Part-1
35 pages
Dbms-1
PDF
No ratings yet
Dbms-1
56 pages
DBMS Technical
PDF
No ratings yet
DBMS Technical
40 pages
Relational Database Management System
PDF
No ratings yet
Relational Database Management System
9 pages
Interview Bit
PDF
No ratings yet
Interview Bit
26 pages
DBMS Interview Questions For Data Analyst
PDF
No ratings yet
DBMS Interview Questions For Data Analyst
23 pages
Unit 1 draft
PDF
No ratings yet
Unit 1 draft
20 pages
DBMS Interview Questions@freecodecs
PDF
No ratings yet
DBMS Interview Questions@freecodecs
26 pages
DBMS-UNIT-1
PDF
No ratings yet
DBMS-UNIT-1
34 pages
CH 1
PDF
No ratings yet
CH 1
102 pages
Database Interview Questions
PDF
No ratings yet
Database Interview Questions
9 pages
Database Assinment 1
PDF
No ratings yet
Database Assinment 1
18 pages
Vocational Skills
PDF
No ratings yet
Vocational Skills
38 pages
MySQL Tutorial
PDF
No ratings yet
MySQL Tutorial
176 pages
Database Management Systems Notes
PDF
No ratings yet
Database Management Systems Notes
154 pages
Dbms
PDF
No ratings yet
Dbms
26 pages
CBH Dbms Part-2 Docscanner 18 Oct 2023 17-24
PDF
No ratings yet
CBH Dbms Part-2 Docscanner 18 Oct 2023 17-24
168 pages
RDBMS 5 units Notes
PDF
No ratings yet
RDBMS 5 units Notes
113 pages
Data Analytics Handwritten Notes
PDF
No ratings yet
Data Analytics Handwritten Notes
47 pages
Dbms(Computers)
PDF
No ratings yet
Dbms(Computers)
121 pages
DBMS_Unit 1
PDF
No ratings yet
DBMS_Unit 1
34 pages
Data Base Management System
PDF
No ratings yet
Data Base Management System
61 pages
Database Management System
PDF
No ratings yet
Database Management System
51 pages
DBMSppt-2
PDF
No ratings yet
DBMSppt-2
111 pages
DBMS Tutorial
PDF
No ratings yet
DBMS Tutorial
5 pages
Dbt
PDF
No ratings yet
Dbt
24 pages
7 DBMS
PDF
No ratings yet
7 DBMS
38 pages
DBMS
PDF
No ratings yet
DBMS
113 pages
01_01_Introduction
PDF
No ratings yet
01_01_Introduction
20 pages
Top DBMS Interview Questions and Answers (2024 Updated) - InterviewBit
PDF
No ratings yet
Top DBMS Interview Questions and Answers (2024 Updated) - InterviewBit
25 pages
Mandar Patil: DBMS Basic Interview Questions
PDF
No ratings yet
Mandar Patil: DBMS Basic Interview Questions
6 pages
DBMS Ans
PDF
No ratings yet
DBMS Ans
10 pages
Bca 108 Dbms Lldims
PDF
No ratings yet
Bca 108 Dbms Lldims
145 pages
Chapter 1 Introduction to Database Systems
PDF
No ratings yet
Chapter 1 Introduction to Database Systems
36 pages
DBMS
PDF
No ratings yet
DBMS
19 pages
RDBMS
PDF
No ratings yet
RDBMS
197 pages
Dbms PDF
PDF
No ratings yet
Dbms PDF
22 pages
Liceo de Cagayan University: 1. What Is Database Management System?
PDF
No ratings yet
Liceo de Cagayan University: 1. What Is Database Management System?
3 pages
ER and Normalization
PDF
No ratings yet
ER and Normalization
158 pages
DBMS 3 Module
PDF
No ratings yet
DBMS 3 Module
55 pages
DBMS Interview Questions: Click Here
PDF
No ratings yet
DBMS Interview Questions: Click Here
26 pages
Uit 1 & Unit 2 Notes
PDF
No ratings yet
Uit 1 & Unit 2 Notes
79 pages
Unit
PDF
No ratings yet
Unit
13 pages
?DBMS ? Interview Que & Ans by Interviewbit
PDF
No ratings yet
?DBMS ? Interview Que & Ans by Interviewbit
26 pages
Big Data Analytics Notes
PDF
50% (2)
Big Data Analytics Notes
16 pages
DBMS Interview Questions
PDF
No ratings yet
DBMS Interview Questions
11 pages
Iare DBMS Lecture Notes PDF
PDF
No ratings yet
Iare DBMS Lecture Notes PDF
161 pages
Dbms New
PDF
No ratings yet
Dbms New
156 pages
UX Design 101
PDF
100% (1)
UX Design 101
32 pages
Database and Data Modeling
PDF
No ratings yet
Database and Data Modeling
31 pages
Chatgpt For Digital Marketers
PDF
100% (6)
Chatgpt For Digital Marketers
7 pages
DBMS
PDF
100% (1)
DBMS
16 pages