Hi team
I have the following table
And I have to create this transformation on incidentGroup Column
CASE WHEN incidentTypeID] >= 100 AND 0incidentTypeID] <= 199 THEN '1XX-Fire'
WHEN incidentTypeID] >= 200 AND tincidentTypeID] <= 299 THEN '2XX-Overpressure, Explosion, Overheat(no fire)'
WHEN incidentTypeID] >= 300 AND IincidentTypeID] <= 399 THEN '3XX-Rescue & Emergency Medical'
WHEN bincidentTypeID] >= 400 AND nincidentTypeID] <= 499 THEN '4XX-Hazardous Condition(No Fire)'
WHEN iincidentTypeID] >= 500 AND iincidentTypeID] <= 599 THEN '5XX-Service Call'
WHEN rincidentTypeID] >= 600 AND WincidentTypeID] <= 699 THEN '6XX-Good Intent Call'
WHEN GincidentTypeID] >= 700 AND incidentTypeID] <= 799 THEN '7XX-False Alarm & False Call'
WHEN AincidentTypeID] >= 800 AND incidentTypeID] <= 899 THEN '8XX-Servere Weather & Natural'
WHEN eincidentTypeID] >= 900 AND rincidentTypeID] <= 999 THEN '9XX-Special Incident Type'
WHEN 9incidentTypeID] = -1 THEN 'N/A'
ELSE 'Not Clasified'
END
What is your recommendation? use Custom transformation or what other solution?
Thanks
Ignacio