Dice the onion, carrot, and ham.
Heat cooking oil in a pan and stir-fry the onion, carrot, and ham.
Add rice and stir-fry together.
Add ketchup and mix evenly while stir-frying.
Season with salt and pepper to taste.
Serve the finished fried rice on a plate.