DBMS INTERVIEW QUESTION 2
Q What is trigger in DBMS
A program in a database that gets called each time a row in a table is INSERTED UPDATED or DELETED. Triggers allow you to check that any changes are correct or to fill in missing information before it is commited. Triggers are normally written in PL/SQL or Java
QUEST What is E-R model?
ANSWER:
This data model is based on real world that consists of basic objects called entities and of relationship among these objects. Entities are described in a database by a set of attributes.
QUES What is Object Oriented model?
ANS This model is based on collection of objects. An object contains values stored in instance variables with in the object. An object also contains bodies of code that operate on the object. These bodies of code are called methods. Objects that contain same types of values and the same methods are grouped together into classes.
QUES What is an Entity?
ANS It is a 'thing' in the real world with an independent existence.
QUE What is an Entity type?
ANS It is a collection (set) of entities that have same attributes.
QUES What is an Entity set?
ANS It is a collection of all entities of particular entity type in the database.
QUES What is an Extension of entity type?
ANS The collections of entities of a particular entity type are grouped together into an entity set.
QUES What is Weak Entity set?
ANS An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set.
QUES What is an attribute?
ANS It is a particular property, which describes the entity.
QUES What is a Relation Schema and a Relation?
ANS A relation Schema denoted by R(A1, A2, ?, An) is made up of the relation name R and the list of attributes Ai that it contains. A relation is defined as a set of tuples. Let r be the relation which contains set tuples (t1, t2, t3, ..., tn). Each tuple is an ordered list of n-values t=(v1,v2, ..., vn).
QUES What is degree of a Relation?
ANS It is the number of attribute of its relation schema.
QUE What is Relationship?
ANS It is an association among two or more entities.
QUES What is Relationship set?
ANS The collection (or set) of similar relationships.
QUES What is Relationship type?
ANS Relationship type defines a set of associations or a relationship set among a given set of entity types.
QUES What is degree of Relationship type?
ANS It is the number of entity type participating.
A program in a database that gets called each time a row in a table is INSERTED UPDATED or DELETED. Triggers allow you to check that any changes are correct or to fill in missing information before it is commited. Triggers are normally written in PL/SQL or Java
QUEST What is E-R model?
ANSWER:
This data model is based on real world that consists of basic objects called entities and of relationship among these objects. Entities are described in a database by a set of attributes.
QUES What is Object Oriented model?
ANS This model is based on collection of objects. An object contains values stored in instance variables with in the object. An object also contains bodies of code that operate on the object. These bodies of code are called methods. Objects that contain same types of values and the same methods are grouped together into classes.
QUES What is an Entity?
ANS It is a 'thing' in the real world with an independent existence.
QUE What is an Entity type?
ANS It is a collection (set) of entities that have same attributes.
QUES What is an Entity set?
ANS It is a collection of all entities of particular entity type in the database.
QUES What is an Extension of entity type?
ANS The collections of entities of a particular entity type are grouped together into an entity set.
QUES What is Weak Entity set?
ANS An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set.
QUES What is an attribute?
ANS It is a particular property, which describes the entity.
QUES What is a Relation Schema and a Relation?
ANS A relation Schema denoted by R(A1, A2, ?, An) is made up of the relation name R and the list of attributes Ai that it contains. A relation is defined as a set of tuples. Let r be the relation which contains set tuples (t1, t2, t3, ..., tn). Each tuple is an ordered list of n-values t=(v1,v2, ..., vn).
QUES What is degree of a Relation?
ANS It is the number of attribute of its relation schema.
QUE What is Relationship?
ANS It is an association among two or more entities.
QUES What is Relationship set?
ANS The collection (or set) of similar relationships.
QUES What is Relationship type?
ANS Relationship type defines a set of associations or a relationship set among a given set of entity types.
QUES What is degree of Relationship type?
ANS It is the number of entity type participating.
Comments