Beruflich Dokumente
Kultur Dokumente
Course registration
Student
Student Predescribed
Validate course
Registered Courses
Roll List
Reformat and
Sort
Roll List
Teacher
Select: This is a unary operator that selects a subset of tuples of the relation,
which
satisfy selection condition. this can be represented by
<Select condition> (<relation name>).
For ex.: salary>8000(faculty).
Project : This is also unary operator ,that chooses subset of attributes or
columns of a relation and restricts all the tuples of a relation to those attributes. This
is represented by
<attribute list>(<relation name>).
For ex.: ENAME, SAL(FACULTY)
Cartesian Product : This is binary operator that combines information across two
relations. Cartesian product of two relations
R=(A1,A2,A3,A4,…..) and S=(B1,B2,B3,…)can be represented as:
Q=R*S= (A1, A2, A3….B1, B2, B3…).
Join : This is also a binary operator which is widely used and this operator
concatenates only tuples that satisfy certain conditions .This is represented by
R |cond S.
Union ,Intersection and Difference : These operators are similar to set unio, set
interection and set difference .To have union relations must have same number of
attributes and corresponding attributes must have same domain.
Divide : This is operators is useful when the query involves the world all. Division
operator can be used to answer queries of the form: Names of employees working in
all projects, Names of the student’s registerd for all courses etc...This operator is
denoted by /.
Renaming: This is often required to refer to the same relation twice in a query in
different contexts. This is done by calling a relation by some other name.
Semi –join: Semi –Join operator is basically a join followed by a project on the
attributes of first relation. These are used in distributed databases to send only those
tuples of the relation which participate in the join to other site. This is denoted by
(R S) where denotes project on all attributes of R.
• Database Planning
It is known fact that the needs of the organization are different at different levels of
management. Basically one classifies the needs into three categories as below:
1) Operational database
Which contains data assisting day to day activities of the organization?
2) Control database
Which contains data assisting needs of middle management to monitor and
control business activities by effective and efficient management of man,
machines and money?
3) Strategic planning database which contains data required for top management for
taking long-term decision?
3 Discuss the following :
4. Explain the process of creating databases in SQL Server 2005 with suitable
examples