Database Management System Lab Course Code: CSE 312: Instructor: Tasnim Tarannum Lecturer CSE Department
Database Management System Lab Course Code: CSE 312: Instructor: Tasnim Tarannum Lecturer CSE Department
► What is field
Field is a smaller entity of the table which contains specific information about
every record in the table. In the above example, the field in the student table
consist of id, name, age, course.
► What is row or record
A row of a table is also called record. It contains the specific information of each
individual entry in the table. It is a horizontal entity in the table. For example:
The above table contains 5 records.
► What is column
A column is a vertical entity in the table which contains all information
associated with a specific field in a table. For example: "name" is a column in the
above table which contains all information about student's name.
Examples
Let's see the example of student table
1 Arafat 24 B.Tech
2 Sadia 20 C.A
3 Moin 21 BCA
4 Raju 22 MCA
5 Forid 26 BSC
Field: id, name, age, course
1 Arafat 24 B.Tech
Examples
Row or record:
1 Arafat 24 B.Tech
Column:
Arafat
Sadia
Moin
Raju
Forid
SQL - Data Types
► Numeric Data Types
varchar
2 Maximum of 8,000 characters.(Variable-length non-Unicode data).
varchar(max)
3 Maximum length of 2E + 31 characters, Variable-length non-Unicode data (SQL Server
2005 only).
text
4 Variable-length non-Unicode data with a maximum length of 2,147,483,647 characters.
SQL - Operators
► Arithmetic operators
► Comparison operators
► Logical operators
► Operators used to negate conditions
SQL - Operators
► SQL Arithmetic Operators
Assume 'variable a' holds 10 and 'variable b' holds 20, then −