Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

CUSTOM DATA TYPES SKILLS PRACTICE SOLUTIONS

Use the data type designer to create the following new custom data type for the Vehicle
Fleet Management (VFM) application:
Create a CDT named VFM_vehicle with the following fields and data types:
1. id - number (integer) - ​Identify as the primary key and ensure that it will be
auto-generated
2. make - text
3. model - text
4. licensePlate - text, limit of 10 characters
5. category - text
6. vehicleCondition - text
7. lastUpdated - date/time
8. nextServiceDate - date
9. mileage - number (integer)
10. pictureId - number (integer)

CREATE VFM_VEHILCE CUSTOM DATA TYPE 


Select New and Data type and enter the basic information about the vehicle. Make sure to
define the namespace as the application prefix, VFM.
VFM_VEHICLE CUSTOM DATA TYPE CONFIGURATION
Then, add each of the fields within your custom data type, which should look similar to the
image below. To define the primary key, make sure to select the key icon next to the ID and
choose both primary key and auto-generate the next value.

You might also like