I am doing some relational algebra exercizes. On a teacher slide I saw a thing that makes me think that there can be an error. I think, the third JOIN, should be
JOIN 'Farmacia' as F
ON 'D'.'idCF' = 'F'.'idFì
instead of
JOIN 'Farmacia' as F
ON 'F'.'idFì = 'D'.'idCF'
Using this last command you will join Farmacia on itself, isn't it?
The slide question says:
Which pharmacy does sell drug X of phramaceutic company Y?