-4
我有這個疑問:QUERY的解決方案是緩慢
select
t1.IMMAGINE as r1 ,
t1.NOME as r2,
t1.IMO as r3
from
FOTO_NAVI.dbo.NAVI as t1
INNER JOIN
(
select
distinct t3.IMO
from
(
select
I_ID_NAVE,
D_PREVISTO_ARRIVO,
I_ID_PORTO
from
Olbia.dbo.ESTERNALIZZAZIONE_FASCICOLINAVE as tint
where
tint.D_EFFETTIVO_ARRIVO IS NULL and
tint.D_PREVISTO_ARRIVO>GETDATE()-1 AND
tint.I_ID_PORTO=42104
)as t2
inner join OLbia.dbo.NAVI as t3
on t3.N_ident_seguenziale=t2.I_ID_NAVE
) AS T4
on T4.imo= t1.imo
order by t1.IMO
嗨,大家好,這僅僅是實在是太緩慢,你可以把它更快?問題的速度,我相信用T4和T1
SO是英文版的,請使用該語言! – jarlh
'mysql'或'sql-server'對於非常不同的DBMS。 – Jens
它是MySQL還是SQL Server很慢? (兩種不同的產品,有一些不同的優化技巧。) – jarlh