I have this table :
And these two expressions :
I have to tell which one of these two expression is more effictive to find "nom".
I have choice between A or B or both are equally effective.
My teacher said in class that a join is a really demanding operation but it is the most used. Other than that he didn't address this topic so i am kinda lost to answer this question.
They have the same amount of join operations so i am not sure what else i am supposed to look at..
Thank you for your help.


As a general principle, filtering should happen as early as practical: joins tend to multiply the number of rows in each table, which means more work for the filters and for later joins.
In this case:
Both of these calculations give the same result, but the second - filtering as early as possible - has reduced the number of filter attempts and row calculations, because it doesn't need to come up with all the rows for course data that it doesn't care about.