Look at the query plan of the following query
• Remove all underlying indexes and statistics from the database• Revisit the execution plan• Use the optimizer to optimize the underlying database• Consider the execution plan againuse adventureworks2025
SELECT Sales.SalesOrderDetail.OrderQty, Sales.SalesOrderHeader.SalesOrderID, Sales.SalesOrderHeader.OrderDate,
Production.Product.Name, Production.ProductSubcategory.Name AS SubCat, Production.ProductCategory.Name AS CatFROM Production.ProductSubcategory LEFT OUTER JOINProduction.ProductCategory ON Production.ProductSubcategory.ProductCategoryID = Production.ProductCategory.ProductCategoryID ANDProduction.ProductSubcategory.ProductCategoryID = Production.ProductCategory.ProductCategoryID RIGHT OUTER JOINProduction.Product ON Production.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID ANDProduction.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID RIGHT OUTER JOINSales.SalesOrderDetail ON Production.Product.ProductID = Sales.SalesOrderDetail.ProductID LEFT OUTER JOINSales.SalesOrderHeader ON Sales.SalesOrderDetail.SalesOrderID = Sales.SalesOrderHeader.SalesOrderIDwhere color = 'red' and OrderQty = 18