You will now create a database for the following seven tables. You will build upon this database in the upcoming units of the course.   Create a database containing the following tables:  Table Department    DepartmentID Name GroupName ModifiedDate   Table Employee    EmployeeID NationalIDNumber ContactID LoginID ManagerID ShiftID Title BirthDate MaritalStatus Gender HireDate SalariedFlag VacationHours SickLeaveHours CurrentFlag rowguid ModifiedDate   Table EmployeeAddress   EmployeeID AddressID rowguid ModifiedDate   Table EmployeePayHistory   EmployeeID RateChangeDate Rate PayFrequency ModifiedDate  Table EmployeeDepartmentHistory   EmployeeID DepartmentID StartDate ShiftID EndDate ModifiedDate  Table Shift   ShiftID Name StartTime EndTime ModifiedDate  Table JobCandidate   JobCandidateID EmployeeID Resume ModifiedDate  •Create the needed tables in the SQL server environment (just tables, no relationships yet). ◦Use integer (INT) data types for all ID columns.  ◦Use DATE data types for all date-related columns.  ◦Rate related columns should be DECIMAL data types.  ◦All other data types should be VARCHAR.   •In addition, create 3 additional tables that could be consistent in a database for a human resources (HR) application, including an appropriate table name and appropriate columns.  •Create and submit a screenshot of your database diagram based on the tables, and generate the data definition language (DDL) for each table.  •Submit a consolidated Word document with the diagram and the DDL for all tables.

In this assignment, we will be creating a database with seven tables. The purpose of this database is to store information related to human resources (HR) activities, including departments, employees, employee addresses, employee pay history, employee department history, shifts, and job candidates. We will start by creating the tables in the SQL server environment.

For the “Department” table, we will have the following columns: DepartmentID, Name, GroupName, and ModifiedDate. DepartmentID will be of integer (INT) data type, while Name and GroupName will be of VARCHAR data type. ModifiedDate will be of DATE data type.

The “Employee” table will have the following columns: EmployeeID, NationalIDNumber, ContactID, LoginID, ManagerID, ShiftID, Title, BirthDate, MaritalStatus, Gender, HireDate, SalariedFlag, VacationHours, SickLeaveHours, CurrentFlag, rowguid, and ModifiedDate. EmployeeID, NationalIDNumber, ContactID, LoginID, ManagerID, ShiftID, Title, MaritalStatus, Gender, SalariedFlag, VacationHours, SickLeaveHours, and CurrentFlag will be of integer (INT) data type. BirthDate, HireDate, rowguid, and ModifiedDate will be of DATE data type.

For the “EmployeeAddress” table, we will have the following columns: EmployeeID, AddressID, rowguid, and ModifiedDate. EmployeeID and AddressID will be of integer (INT) data type, while rowguid and ModifiedDate will be of DATE data type.

The “EmployeePayHistory” table will have the following columns: EmployeeID, RateChangeDate, Rate, PayFrequency, and ModifiedDate. EmployeeID will be of integer (INT) data type, while RateChangeDate, Rate, and ModifiedDate will be of DECIMAL data type. PayFrequency will be of VARCHAR data type.

In the “EmployeeDepartmentHistory” table, we will have the following columns: EmployeeID, DepartmentID, StartDate, ShiftID, EndDate, and ModifiedDate. EmployeeID and DepartmentID will be of integer (INT) data type, while StartDate, EndDate, and ModifiedDate will be of DATE data type. ShiftID will also be of integer (INT) data type.

For the “Shift” table, we will have the following columns: ShiftID, Name, StartTime, EndTime, and ModifiedDate. ShiftID will be of integer (INT) data type, while Name will be of VARCHAR data type. StartTime, EndTime, and ModifiedDate will be of DATE data type.

Finally, the “JobCandidate” table will have the following columns: JobCandidateID, EmployeeID, Resume, and ModifiedDate. JobCandidateID and EmployeeID will be of integer (INT) data type, while Resume will be of VARCHAR data type. ModifiedDate will be of DATE data type.

Additionally, we are required to create three additional tables that could be consistent in a HR database. These tables should have appropriate table names and columns, but the specific details are not provided in the assignment prompt.

Once we have created all the tables in the SQL server environment, we need to generate the data definition language (DDL) for each table. The DDL statements will define the structure of each table, including the column names, data types, and any constraints or indexes.

Finally, we need to create a screenshot of the database diagram based on the tables and submit it, along with the consolidated word document containing the diagram and the DDL statements for all tables.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer