Cut onion, green onion, ham, and other ingredients into bite-sized pieces.
Heat oil in a pan and stir-fry the onion and green onion.
Add ham and continue stir-frying.
Add rice and mix well with the ingredients, stir-frying everything together.
Season with soy sauce and salt.
Crack an egg and pour it in the center of the pan, letting it cook.
Once the egg is cooked, drizzle tomato sauce over the top of the rice.
Transfer the finished fried rice to a plate.