# MileageRegistrationById: Bouw7 Mileage Registration by ID
Returns a single mileage registration based on the given ID.
Returns a single mileage registration based on the given ID.
- Catalog: `Bouw7`
- Schema: `MileageRegistrations`
- Label: Mileage Registration by ID
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 `MileageRegistrationById`. 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 |
|---|:---:|:---:|:---:|---|
| `id` | `` | ☑ | | |
## Columns of Table Function
The columns of the table function `MileageRegistrationById` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `createdAt` | `datetime` | Created at | ☐ | The creation time of the entity. |
| `createdBy` | `varchar2` | Created by | ☐ | The user that created the entity. |
| `driver_firstName` | `varchar2` | Driver First Name | ☐ | First name of the employee. |
| `driver_id` | `int64` | Driver ID | ☐ | ID of the employee. |
| `driver_lastName` | `varchar2` | Driver Last Name | ☐ | Last name of the 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_firstName` | `varchar2` | Passenger 1 First Name | ☐ | First name of the employee. |
| `passenger1_id` | `int64` | Passenger 1 ID | ☐ | ID of the employee. |
| `passenger1_lastName` | `varchar2` | Passenger 1 Last Name | ☐ | Last name of the employee. |
| `passenger2_firstName` | `varchar2` | Passenger 2 First Name | ☐ | First name of the employee. |
| `passenger2_id` | `int64` | Passenger 2 ID | ☐ | ID of the employee. |
| `passenger2_lastName` | `varchar2` | Passenger 2 Last Name | ☐ | Last name of the employee. |
| `passenger3_firstName` | `varchar2` | Passenger 3 First Name | ☐ | First name of the employee. |
| `passenger3_id` | `int64` | Passenger 3 ID | ☐ | ID of the employee. |
| `passenger3_lastName` | `varchar2` | Passenger 3 Last Name | ☐ | Last name of the employee. |
| `passenger4_firstName` | `varchar2` | Passenger 4 First Name | ☐ | First name of the employee. |
| `passenger4_id` | `int64` | Passenger 4 ID | ☐ | ID of the employee. |
| `passenger4_lastName` | `varchar2` | Passenger 4 Last Name | ☐ | Last name of the employee. |
| `passenger5_firstName` | `varchar2` | Passenger 5 First Name | ☐ | First name of the employee. |
| `passenger5_id` | `int64` | Passenger 5 ID | ☐ | ID of the employee. |
| `passenger5_lastName` | `varchar2` | Passenger 5 Last Name | ☐ | Last name of the employee. |
| `passenger6_firstName` | `varchar2` | Passenger 6 First Name | ☐ | First name of the employee. |
| `passenger6_id` | `int64` | Passenger 6 ID | ☐ | ID of the employee. |
| `passenger6_lastName` | `varchar2` | Passenger 6 Last Name | ☐ | Last name of the employee. |
| `processed` | `char` | Processed | ☐ | Whether or not the mileage registration is processed. |
| `updatedAt` | `datetime` | Updated At | ☐ | The last updated time of the entity. |
| `updatedBy` | `varchar2` | Updated by | ☐ | The user that last updated the entity. |
| `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. |