Hints are option or strategies specifIEd for enforcement by the SQL Server query prosessor on SELECT, INSERT, UPDATE, OR DELETE statements. The hints override any execution plan the query optimizer might select for a query.
Query hints specify that the indicated hints should be used throughout the query. Query hints affect all operators in the statement. If UNION is involved in the main query, only the last query involving a UNION Operation can have the OPTION clause. Query hints are specifIEd as part of the
RetrIEves rows from the database and enables the selection of one or many rows or columns from one or many tables. The full syntax of the SELECT statement is complex, but the main clauses can be summarized as:
[ WITH <common_table_expression>]
SELECT select_list [ INTO new_table ]
[ FROM table_source ] [ WHERE search_condition ]
[ GROUP BY group_by_expression ]
[ HAVING search_condition ]
[ ORDER BY order_expression [ ASC | DESC ] ]
The UNION, EXCEPT and INTERSECT Operators can be used between querIEs to combine or compare their results into one result set.