Query optimization is a process in which a database system compares different query strategies and select the query with the least cost.