Professional Documents
Culture Documents
SUBDIRECCIÓN ACADÉMICA
DEPARTAMENTO DE SISTEMAS Y COMPUTACIÓN
SEMESTRE:
Enero - Junio 2024
CARRERA:
Ingeniería Informática
MATERIA:
Taller de Base de Datos
TÍTULO ACTIVIDAD:
A1.5 Definición del esquema de integridad
UNIDADAEVALUAR:
Unidad I
Índice............................................................................................................................................. 1
Adventure Works Human Resources............................................................................................ 2
Código Human Resources.......................................................................................................2
Diagrama de Human Resources............................................................................................. 8
1
Adventure Works Human Resources
Código Human Resources
DepartmentID ASC
);
GO
OrganizationLevel AS (OrganizationNode.GetLevel()),
2
SickLeaveHours SMALLINT NOT NULL,
BusinessEntityID ASC
);
GO
CONSTRAINT PK_EmployeeDepartmentHistory_BusinessEntityID_StartDate_DepartmentID
PRIMARY KEY CLUSTERED
BusinessEntityID ASC,
StartDate ASC,
DepartmentID ASC,
ShiftID ASC
);
3
GO
BusinessEntityID ASC,
RateChangeDate ASC
);
GO
JobCandidateID ASC
);
GO
4
CREATE TABLE Shift (
ShiftID ASC
);
GO
5
BusinessEntityID ASC
);
GO
BusinessEntityID ASC
);
GO
GO
GO
6
ALTER TABLE EmployeeDepartmentHistory ADD CONSTRAINT
FK_EmployeeDepartmentHistory_Department_DepartmentID FOREIGN KEY(DepartmentID)
GO
GO
GO
GO
GO
GO
GO
GO
GO
7
GO
GO