Professional Documents
Culture Documents
Dbms - 2
Dbms - 2
o Entity set :
An entity set is a collection of similar entities. This concept allows to grouping of
similar entities which perform same task in the applications. Two entity sets may
have a common entity. The entity set is frequently referred to as an entity type or
class ,whereas an individual entity is considered as an occurrence to that type .
o Attributes :
An attribute describes a property associated with entities. Attribute will have a
name and a value for each entity. A set of attributes would describe one entity set
and an entity will have value for each if these attributes.
o Domain :
A domain define a set of permitted values for a attribute . A domain will typically
be defined by the data type of the attribute, range of permitted values etc.
o One to one relationship :
Where one entity in A may be associated at most with one entity in B.For ex.
Relationship between textbook and the course, where a course may have a specific
textbook.
o One to many relationship :
Where one entity in A is associated at with zero or more entities in B can be
associated with at most one entity from A. For ex. Relationship of department with
employee.
String Function
String function are used for various operations on character and binary strings, and
they return values commonly needed for operations on character data. A few string
function can also be used on binary and verbinary data.
We can use string function to :
• Retrieve only apposition of a strings(substrings).
• Look for similarities in the sound of character string(SOUNDEX and DIFFERENCE ).
• Find a starting position number of the latter. A in “what a beautiful day”.
• Concatenate or combine strings into one string. For example, combining a
first name, last name and middle name or initial for a full name.