Je veux connaitre la quelle de ces requêtes ci-dessous est la plus performante de point de vue temps d'exécution

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
SELECT exchange_rate
FROM s_currency_exchange_rate a
WHERE a.host_id = 'A'
AND a.entity_id = 'B'
AND a.currency_code = 'TND'
AND a.exchange_rate_date =
(SELECT MAX (exchange_rate_date)
FROM s_currency_exchange_rate b
WHERE b.host_id = a.host_id
AND b.entity_id = a.entity_id
AND b.currency_code = a.currency_code);
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
SELECT a.exchange_rate
FROM s_currency_exchange_rate a,(SELECT MAX (exchange_rate_date) mx,currency_code,entity_id,host_id
FROM s_currency_exchange_rate group by currency_code,entity_id,host_id)b
WHERE a.host_id = 'A'
AND a.entity_id = 'B'
AND a.currency_code = 'TND'
AND a.exchange_rate_date =b.mx
and b.host_id = a.host_id
AND b.entity_id = a.entity_id
AND b.currency_code = a.currency_code
Est ce qui' il est recommandé d'utiliser les requetés corrélées ?