Peel and finely dice the garlic and onion. Heat 1 teaspoon of oil in a saucepan. Sauté garlic and onion over medium heat until translucent. Add the tomatoes and simmer covered for 6-8 minutes.
Cook the pasta in boiling salted water according to the instructions on the packet. Wash and clean the salad, pluck into pieces and drain. Pluck ham roughly into pieces. Heat 1 teaspoon of oil in a small coated pan.
Fry the ham for 2-3 minutes until crispy. Add the frisée and olives to the sauce, bring to the boil again briefly, season with salt, pepper and a little sugar. Drain the pasta and arrange on plates with sauce and ham.