Rdbms Slide 2
Rdbms Slide 2
y st
S
n t
e
e m
ag
an
M
se
ba
a
S D at
M
B nal
RD tio a
el
R
Slide-2
Field and Record
Field: A field is a single piece of information or attribute in a database. It
represents a column in a table and holds data of a specific type
(e.g., name, age, address). Each field has a field name (or column name)
that describes the type of data it contains. For example, in a table storing
employee information, fields might include "First Name," "Last Name,"
"Date of Birth," and "Employee ID.“
Fields: "Employee ID," "First Name," "Last Name," and "Date of Birth" are fields
Record: Each row (e.g., 101, John, Doe, 1990-01-01) is a record.
FIRST
Removing A Column
Note: In the example above there is only ONE PRIMARY KEY (PK_Person). However,
the VALUE of the primary key is made up of TWO COLUMNS (ID + LastName).
PRIMARY KEY
To create a PRIMARY KEY constraint on the "ID" column when
the table is already created, use the following SQL: