'What exactly is a query COST? What does cost refer to? [closed]

SQL servers use a cost based query optimizer to generate execution plans. //What exactly does this cost mean. How do you determine it from a SQL query?

A number of different resources could be used to evaluate the costs of the query such as disk accesses, CPU time and communication overhead. //How do these resources relate to query cost?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source