Вы находитесь на странице: 1из 1

SQL Execution Plan - \\VICTOR2K -

Query 1: Query cost (relative to the batch): 28.01%


Query text: INSERT INTO #tmpT
(dic,last, date)

INSERT
Cost: 0%

Table Insert/In...
Cost: 0%

Top
Cost: 0%

SELECT dic, last, date

Compute Scalar
Cost: 0%

FROM qryDic

WHERE (date >= @begTime AND date < @endTime)

-- Ad

Hash Match/Inne...Hash Match/Inne...registers.PK_re...


Cost: 39%
Cost: 3%
Cost: 0%

tmpT.ndx_tmpT
Cost: 10%

instruments.PK_...
Cost: 48%
Query 2: Query cost (relative to the batch): 0.10%
Query text: INSERT INTO #quotes
SELECT dic, date, @TF_FIELD_LAST, last

INSERT
Cost: 0%

Table Insert/In...
Cost: 21%

Top
Cost: 0%

FROM #tmpT

Table Scan
Cost: 79%

Query 3: Query cost (relative to the batch): 1.26%


Query text: INSERT INTO #HighLow5
SELECT dic, MAX(last) AS hgh5, MIN(last) AS low5

INSERT
Cost: 0%

Table Insert/In...
Cost: 3%

Top
Cost: 0%

Hash Match/Aggr...
Cost: 64%

Table Insert/In...
Cost: 3%

Top
Cost: 0%

Hash Match/Aggr...
Cost: 64%

Query 5: Query cost (relative to the batch): 6.03%


Query text: INSERT INTO tmp5 (dic, date, field, value)

INSERT
Cost: 0%

Clustered Index...
Cost: 1%

Sort
Cost: 50%

FROM #tmpT

GROUP BY dic

FROM #tmpT

GROUP BY dic

Table Scan
Cost: 34%

Query 4: Query cost (relative to the batch): 1.26%


Query text: INSERT INTO #OpenClose5
SELECT dic, MIN(ID) AS IDopn, MAX(ID) AS IDcls

INSERT
Cost: 0%

-- Tabele temporare pentru calcul Five

Table Scan
Cost: 34%

SELECT dic5, @endTime , @TF_FIELD_LOW_FIVE , low5

Top
Cost: 0%

-- Adugare Five n tmp5

Concatenation
Cost: 0%

FROM #HighLow5

UNION ALL

SELECT dic5

Table Scan
Cost: 2%

Table Scan
Cost: 2%

Hash Match/Inne...
Cost: 13%

Table Scan
Cost: 2%

Table Scan
Cost: 7%

Hash Match/Inne...
Cost: 13%

Table Scan
Cost: 2%

Table Scan
Cost: 7%
Query 6: Query cost (relative to the batch): 62.79%
Query text: DELETE FROM tmpT WHERE (date >= @begTime) AND (date < @endTime)

DELETE
Cost: 0%

Clustered Index...
Cost: 95%

Top
Cost: 0%

tmpT.ndx_tmpT
Cost: 4%

Query 7: Query cost (relative to the batch): 0.54%


Query text: INSERT INTO [_quotes]
(dic, date, field, value)

INSERT
Cost: 0%

Table Insert/In...
Cost: 21%

Top
Cost: 3%

SELECT dic, date, field, value

FROM #quotes

Table Scan
Cost: 76%
20.09.2000 - 12:41:55

Вам также может понравиться