# MileageRegistrations: Bouw7 Mileage Registrations Returns a list of mileage registrations associated with your organization. Returns a list of mileage registrations associated with your organization - Catalog: `Bouw7` - Schema: `MileageRegistrations` - Label: Mileage Registrations This is a read-only table function. The Bouw7 API may not support changing the data or the Invantive UniversalSQL driver for Bouw7 does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Bouw7 API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `MileageRegistrations`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `q` | `` | ☐ | | A [Heimdall Query Language](https://heimdall.bouw7.nl/docs/query-language) string | ## Columns of Table Function The columns of the table function `MileageRegistrations` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `createdAt` | `datetime` | Created at | ☐ | The creation date of the object in ATOM/ISO-8601 format | | `createdBy_id` | `int64` | Created by ID | ☐ | The ID of the user. | | `createdBy_username` | `varchar2` | Created by User Name | ☐ | The username of the user. | | `driver_departmentId` | `int64` | Driver Department ID | ☐ | The ID of the department this employee is enrolled in. | | `driver_exactSalaryFrequency` | `int64` | Driver Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `driver_firstName` | `varchar2` | Driver First Name | ☐ | The given name of this employee. | | `driver_id` | `int64` | Driver ID | ☐ | The ID of the employee. | | `driver_lastName` | `varchar2` | Driver Last Name | ☐ | The family name of this employee. | | `id` | `int64` | ID | ☐ | ID of the mileage registration. | | `licensePlate` | `varchar2` | License Plate | ☐ | The licence plate that belongs to this milage registration. | | `mileage` | `int64` | Mileage | ☐ | The mileage associated with this mileage registration | | `passenger1_departmentId` | `int64` | Passenger 1 Department ID | ☐ | The ID of the department this employee is enrolled in. | | `passenger1_exactSalaryFrequency` | `int64` | Passenger 1 Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `passenger1_firstName` | `varchar2` | Passenger 1 First Name | ☐ | The given name of this employee. | | `passenger1_id` | `int64` | Passenger 1 ID | ☐ | The ID of the employee. | | `passenger1_lastName` | `varchar2` | Passenger 1 Last Name | ☐ | The family name of this employee. | | `passenger2_departmentId` | `int64` | Passenger 2 Department ID | ☐ | The ID of the department this employee is enrolled in. | | `passenger2_exactSalaryFrequency` | `int64` | Passenger 2 Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `passenger2_firstName` | `varchar2` | Passenger 2 First Name | ☐ | The given name of this employee. | | `passenger2_id` | `int64` | Passenger 2 ID | ☐ | The ID of the employee. | | `passenger2_lastName` | `varchar2` | Passenger 2 Last Name | ☐ | The family name of this employee. | | `passenger3_departmentId` | `int64` | Passenger 3 Department ID | ☐ | The ID of the department this employee is enrolled in. | | `passenger3_exactSalaryFrequency` | `int64` | Passenger 3 Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `passenger3_firstName` | `varchar2` | Passenger 3 First Name | ☐ | The given name of this employee. | | `passenger3_id` | `int64` | Passenger 3 ID | ☐ | The ID of the employee. | | `passenger3_lastName` | `varchar2` | Passenger 3 Last Name | ☐ | The family name of this employee. | | `passenger4_departmentId` | `int64` | Passenger 4 Department ID | ☐ | The ID of the department this employee is enrolled in. | | `passenger4_exactSalaryFrequency` | `int64` | Passenger 4 Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `passenger4_firstName` | `varchar2` | Passenger 4 First Name | ☐ | The given name of this employee. | | `passenger4_id` | `int64` | Passenger 4 ID | ☐ | The ID of the employee. | | `passenger4_lastName` | `varchar2` | Passenger 4 Last Name | ☐ | The family name of this employee. | | `passenger5_departmentId` | `int64` | Passenger 5 Department ID | ☐ | The ID of the department this employee is enrolled in. | | `passenger5_exactSalaryFrequency` | `int64` | Passenger 5 Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `passenger5_firstName` | `varchar2` | Passenger 5 First Name | ☐ | The given name of this employee. | | `passenger5_id` | `int64` | Passenger 5 ID | ☐ | The ID of the employee. | | `passenger5_lastName` | `varchar2` | Passenger 5 Last Name | ☐ | The family name of this employee. | | `passenger6_departmentId` | `int64` | Passenger 6 Department ID | ☐ | The ID of the department this employee is enrolled in. | | `passenger6_exactSalaryFrequency` | `int64` | Passenger 6 Exact Salary Frequency | ☐ | The exact salary frequency of this employee. | | `passenger6_firstName` | `varchar2` | Passenger 6 First Name | ☐ | The given name of this employee. | | `passenger6_id` | `int64` | Passenger 6 ID | ☐ | The ID of the employee. | | `passenger6_lastName` | `varchar2` | Passenger 6 Last Name | ☐ | The family name of this employee. | | `processed` | `char` | Processed | ☐ | Whether or not the mileage registration is processed. | | `updatedAt` | `datetime` | Updated At | ☐ | The creation date of the object in ATOM/ISO-8601 format | | `updatedBy_id` | `int64` | Updated by ID | ☐ | The ID of the user. | | `updatedBy_username` | `varchar2` | Updated by User Name | ☐ | The username of the user. | | `weekNumber` | `int64` | Week Number | ☐ | (deprecated) The weeknumber the mileage registration applies to. | | `weekStartDate` | `varchar2` | Week Start Date | ☐ | The start date, in Y-m-d, of the week this entry is for. | | `year` | `int64` | Year | ☐ | (deprecated) The year the mileage registration applies to. |