我有以下查詢哪些需要很長時間我的看法。我不能使用索引,因爲它是視圖,我在我的視圖中使用Select *語句。如何優化內部視圖查詢
SELECT *
FROM shell_v3 v3,
Shell_v41 v41,
core_demandsupply ds1,
core_demandsupply ds2
WHERE v41.profile_group = v3.profile_group
AND v41.company = v3.company
AND v41.product = v3.product
AND v41.source_facility = ds2.facility
AND v41.facility = ds1.facility
AND case when ds1.reqd_date < getdate()
then getdate()
else ds1.reqd_date
end between v41.effective_Date and V41.Inactive_Date
請張貼架構和EXPLAIN /執行計劃 –