# ShiftTradesByDepartmentID: Horeko Shift Trades by Department ID
This is a read-only table function. The Horeko API may not support modifying the data, or the Invantive UniversalSQL driver for Horeko does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Horeko API.
- Catalog: `Horeko`
- Schema: `ShiftTrade`
- Label: Shift Trades by Department ID
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `departmentId` | `int32` | ☑ | | |
| `endDate` | `datetime` | ☐ | | |
| `shiftId` | `int32` | ☑ | | |
| `startDate` | `datetime` | ☑ | | |
## Columns
The columns of the table `ShiftTradesByDepartmentID` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `Approved` | `boolean` | Approved | ☐ | |
| `AvailabilityEnd` | `datetime` | Availability End | ☐ | |
| `AvailabilityStart` | `datetime` | Availability Start | ☐ | |
| `AvailabilityStatus` | `int32` | Availability Status | ☐ | |
| `ContractHours` | `double` | Contract Hours | ☐ | |
| `DaysOfWeek` | `string` | Days of Week | ☐ | |
| `DriversLicense` | `boolean` | Driving Licence | ☐ | |
| `Employee` | `string` | Employee | ☐ | |
| `Favorite` | `boolean` | Favourite | ☐ | |
| `FullDay` | `boolean` | Full Day | ☐ | |
| `Function` | `string` | Job Title | ☐ | |
| `GreyTeamIds` | `string` | Greyed Team IDs | ☐ | |
| `HasEro` | `boolean` | | ☐ | |
| `HourlyRate` | `double` | Hourly Rate | ☐ | |
| `Id` | `int32` | ID | ☐ | |
| `Picture` | `string` | Image | ☐ | |
| `SalaryCalculation` | `int32` | Salary Calculation | ☐ | |
| `SkillIds` | `string` | Skill IDs | ☐ | |
| `Skills` | `string` | Skills | ☐ | |
| `Status` | `int32` | Status | ☐ | |
| `Team` | `int32` | Team | ☐ | |
| `TeamIds` | `string` | Team IDs | ☐ | |
| `TotalHours` | `double` | Total Hours | ☐ | |