2 Marks (DBMS)
2 Marks (DBMS)
2 Marks (DBMS)
1.Define DBMS.
→ A Database Management System (DBMS) is software designed to store, retrieve,
define, and manage data in a database.
OR
→ A database management system (DBMS) is a collection of programs enabling
users to create and maintain a database.
6.Define Metadata ?
→ Metadata is simply defined as data about data. It means it is a description and
context of the data. It helps to organize, find and understand data.
www.ourcreativeinfo.in
Database Management System
Unit -2
1. Define attribute and entity and give example.
(i) entity
www.ourcreativeinfo.in
Database Management System
(ii) Attribute
→ In a database management system (DBMS), an attribute is a piece of data that
describes an entity. For example, in a customer database, the attributes might be
name, address, and phone number.
Primary key :
→ A primary key is used to ensure that data in the specific column is unique. A column
cannot have NULL values.
→ Domain integrity constraint contains a certain set of rules or conditions to restrict
the kind of attributes or values a column can hold in the database table.
→ The data type of a domain can be string, integer, character, DateTime, currency,
etc.
→ STUD_NO, as well as STUD_PHONE both, are candidate keys for relation STUDENT
but STUD_NO can be chosen as the primary key (only one out of many candidate
keys).
Foreign key :
→ A foreign key is a column or group of columns in a relational database table that
provides a link between data in two tables. It is a column (or columns) that
references a column (most often the primary key) of another table.
→ STUD_NO in STUDENT_COURSE is a foreign key to STUD_NO in STUDENT relation.
→ Continuing our previous example, Professor is a strong entity, and the primary key
is Professor_ID. However, another entity is Professor_Dependents, which is our
Weak Entity.
www.ourcreativeinfo.in
Database Management System
www.ourcreativeinfo.in
Database Management System
www.ourcreativeinfo.in
Database Management System
www.ourcreativeinfo.in
Database Management System
Define Cursor.
→ Whenever DML statements are executed, a temporary work area is created in
the system memory and it is called a cursor.
→ Cursors are used by database programmers to process individual rows returned
by database system querie
1.Define functional dependencies.
→ Functional dependency in DBMS refers to a relationship that is present between
attributes of any table that are dependent on each other.
www.ourcreativeinfo.in
Database Management System
→ A relation is said to be in the 2nd Normal Form in DBMS (or 2NF) when it is in the First
Normal Form but has no non-prime attribute functionally dependent on any candidate
key's proper subset in a relation.
→ A relation will be in 3NF if it is in 2NF and not contain any transitive partial
dependency.3NF is used to reduce the data duplication. It is also used to achieve the
data integrity
→ BCNF(Boyce Codd Normal Form) in DBMS is an advanced version of 3NF (third
normal form). A table or a relation is said to be in BCNF in DBMS if the table or the
relation is already in 3NF
www.ourcreativeinfo.in
Database Management System
What is deadlock?
→ In a database, a deadlock is a situation in which two or more transactions are
waiting for one another to give up locks.
www.ourcreativeinfo.in
Database Management System
www.ourcreativeinfo.in