Professional Documents
Culture Documents
Lecture 01
Lecture 01
Systems I - (Practical)
CST 123-3
I.S.Pathirana
Basic Terms
• Data:
– Data is a raw fact (collection of characters, numeric values,
special characters etc)
– Whatever we input from the keyboard is known as data.
– Data will not provide any meaningful statements to the
user.
– Ex:- ec@mw2lo1e3
• Table
–A collection of related data entries with columns and
rows
• Character-string
– Data types are either fixed length –CHAR(n) or
CHARACTER(n) where n is the number of characters or
varying length VARCHAR(n) where n is the maximum
number of characters.
• Boolean
⁻ Boolean data type has the values of TRUE or FALSE
• Example:
CREATE DATABASE Hospital;
• Example:
DESCRIBE Patient;