Primary Key

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Primary Key

A Primary Key is a unique identifier for a record in a table. It ensures that no duplicate
values exist for the key, and it cannot contain NULL values. Each table can have only one
primary key, which can be composed of single or multiple columns.

Example:

sql
Copy code
CREATE TABLE Employees (
EmployeeID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
DepartmentID INT
);

In this example, EmployeeID is the primary key for the Employees table, ensuring each
employee has a unique ID.

ient and Team Collaboration:

 Work with clients, functional, and technical teams to drive effective management of
the application.
 Support and manage system testing, business object testing, and assist customers
through user acceptance testing and postproduction phases.
 Innovate ways to reduce operational activities.
 Think creatively to solve user problems with holistic and simple solutions.
 Manage individual project priorities, deadlines, and deliverables.
 Ensure compliance with documented software processes and procedures throughout
the lifecycle.
 Create SOP documentation and update them to implement best practices, standards,
and procedures including quality and delivery methodologies.

Secondary Key (Alternate Key)

A Secondary Key (or Alternate Key) is any candidate key that is not chosen as the primary
key. These keys are also unique identifiers for records in the table, but they can contain
NULL values unless explicitly stated otherwise.

Example:

sql
Copy code
CREATE TABLE Employees (
EmployeeID INT PRIMARY KEY,
Email VARCHAR(100) UNIQUE,
FirstName VARCHAR(50),
LastName VARCHAR(50),
DepartmentID INT
);
Here, Email is a secondary key (or unique key). It ensures each employee has a unique email
address, but it is not the primary key.

ient and Team Collaboration:

 Work with clients, functional, and technical teams to drive effective management of
the application.
 Support and manage system testing, business object testing, and assist customers
through user acceptance testing and postproduction phases.
 Innovate ways to reduce operational activities.
 Think creatively to solve user problems with holistic and simple solutions.
 Manage individual project priorities, deadlines, and deliverables.
 Ensure compliance with documented software processes and procedures throughout
the lifecycle.
 Create SOP documentation and update them to implement best practices, standards,
and procedures including quality and delivery methodologies.

You might also like