Test 1
Test 1
2.4 KEY
Key is an attribute or collection of attributes that uniquely identifies an
entity among entity set.
For example, the roll number of a student makes him/her identifiable
among students.
Super Key − A set of attributes (one or more) that collectively
identifies an entity in an entity set.
Candidate Key − A minimal super key is called a candidate key. An
entity set may have more than one candidate key.
Primary Key − A primary key is one of the candidate keys chosen by
the database designer to uniquely identify the entity set.
2
Users can be granted access to log into individual schemas on a case-
by-case basis, and ownership is transferable. Since each object is associated
with a particular schema, which serves as a kind of namespace, it’s helpful to
give some synonyms, which allows other users to access that object without
first referring to the schema it belongs to.
These schemas do not necessarily indicate the ways that the data files
are stored physically. Instead, schema objects are stored logically within a
table space. The database administrator can specify how much space to
assign to a particular object within a data file.
Finally, schemas and table spaces don’t necessarily line up perfectly:
objects from one schema can be found in multiple table spaces, while a table
space can include objects from several schemas.
3
(relational calculus) languages can be used to specify transactions. With a
relational DBMS, the internal and conceptual schemas, as well as the views,
are defined by relations.
2.7 SQL
SQL is a programming language for Relational Databases. It is
designed over relational algebra and tuple relational calculus. SQL comes as
a package with all major distributions of RDBMS.
SQL comprises both data definition and data manipulation languages.
Using the data definition properties of SQL, one can design and modify
database schema, whereas data manipulation properties allows SQL to store
and retrieve data from database.