Separate the eggs and prepare only the yolks.
Put the egg yolks into a bowl, add salt and sugar, and mix well.
Add vinegar or lemon juice and mix again.
Using a whisk, gradually add cooking oil while stirring.
Keep stirring until thickened and finished.