SQL 1
SQL 1
KE-01 KE-SQL
Software used for Practical Implementation
• MySQL
• Oracle
DATABASE SYSTEM
Tuples or rows
RDBMS
1. Attribute: Attributes are the characteristics or properties that define a relation. e.g.; ROLL_NO, NAME
2. Relation Schema: A relation schema represents name of the relation with its attributes. e.g.; STUDENT (ROLL_NO, NAME,
ADDRESS, PHONE and AGE) is relation schema for STUDENT. If a schema has more than 1 relation, it is called Relational Schema.
3. Tuple: Each row in the relation is known as tuple. The above relation contains 4 tuples, one of which is shown as
1 RAM DELHI 9455123451 18
4. Relation Instance: The set of tuples of a relation at a particular instance of time is called as relation instance. Table 1 shows the
relation instance of STUDENT at a particular time. It can change whenever there is insertion, deletion or updation in the
database.
5. Degree: The number of attributes in the relation is known as degree of the relation. The STUDENT relation defined above has
degree 5.
6. Cardinality: The number of tuples in a relation is known as cardinality. The STUDENT relation defined above has cardinality 4.
RDBMS….
STUDENT Relation/Table
8. NULL Values: The value which is not known or unavailable is called NULL value. It is represented by blank space. e.g.; PHONE of
STUDENT having ROLL_NO 4 is NULL.
9. Domain of an attribute: The possible values an attribute can take in a relation is called its domain. For Example, domain of AGE
can be from 18 to 40.
RDBMS Terminologies summery