Figure 2: Partial
SET EXPLAIN output for a complex query
QUERY:
------
SELECT fname, lname, company FROM customer
WHERE company MATCHES 'Sport*' AND
customer_num BETWEEN 110 AND 115
ORDER BY lname
Estimated Cost: 1
Estimated # of Rows Returned: 1
Temporary Files Required For: Order By
1) virginia.customer: INDEX PATH
Filters: virginia.customer.company MATCHES 'Sport*'
(1) Index Keys: customer_num (Serial, fragments: ALL)
Lower Index Filter: virginia.customer.customer_num >= 110
Upper Index Filter: virginia.customer.customer_num <= 115
Lower Index Filter: virginia.customer.customer_num >= 110
Start
the index scan with the index key value of 110.
Upper Index Filter: virginia.customer.customer_num <= 115
Stop the index scan with the index key value of 115.
Have feedback?
Google Analytics is used to store comments and ratings. To provide a comment or rating for a topic, click Accept All Cookies or Allow All in Cookie Preferences in the footer of this page.