SQL
SQL
STUDENT Table
ROLL_N ADDRES AG
O NAME S PHONE E
945512345
1 RAM DELHI 18
1
RAMES 965243154
2 GURGAON 18
H 3
915625313
3 SUJIT ROHTAK 20
1
915676897
4 SURESH DELHI 18
1
Important Terminologies
These are some important terminologies that are used in terms of
relation.
Attribute: Attributes are the properties that define a
relation. e.g., ROLL_NO, NAME etc.
Tuple: Each row in the relation is known as tuple. The
above relation contains 4 tuples.
Degree: The number of attributes in the relation is known
as degree of the relation. The STUDENT relation defined
above has degree 5.
Cardinality: number of tuples in a relation is known as
cardinality. The STUDENT relation defined above has
cardinality 4.
Column: Column represents the set of values for a
particular attribute.
Division of SQL Commands:
SQL commands can be divided into two main sub-languages.
1-Data Definition Language (DDL)
2-Data Manipulation Language (DML)
-263 (- 263 -1
BigInt 9,223,372,036,854,775,8 (9,223,372,036,854,775,8
08) 07)
bit 0 1
-
922,337,203,685,477.580
money 922,337,203,685,477.580
7
8
Data Type From To