Hi,
My table has the below data
VehicleNo VehicleName
01 Yamaha
01 Harley Davison
02 Honda
02 BMW
01 Suzuki
02 Audi
03 Volvo
03 Tata
01 Kawasaki
When I give a select query, I want to display the vehicle type instead of the numbers like shown below . is it possible ? is there any option available ? Can Replace function be used ?
How ?
Select VehicleNo, VehicleName from Vehicle ;
VehicleNo VehicleName
MC Yamaha
MC Harley Davison
CAR Honda
CAR BMW
MC Suzuki
CAR Audi
BUS Volvo
BUS Tata
MC Kawasaki
01 Should be replaced by MC, 02 should be replaced by CAR, 03 should be replaced by BUS.
Note: The table should not be updated, Only on the select query output it should display in the shown format.
if possible, please help.