"WHERE LaunchDate> @date"
Is the @date parameter value defined in the same batch (or transaction or context)?
If not, this will lead to a clustered scan of indexes (all rows) instead of a clustered index (only rows satisfying the WHERE clause) if its value comes from outside the current batch (for example, the input parameter of a stored procedure or udf). The query cannot be fully optimized by the SQL Server optimizer (at compile time), which leads to a full table scan, since the parameter value is known only at run time
Update: Comment on answers suggesting OLAP.
OLAP is just a concept, SSAS cubes are just one of the possible ways to implement OLAP.
This is a convenience, not an obligation to obtain / use the OLAP concept.
You do not use SSAS to use the OLAP concept.
See For example, Simulated OLAP
Update2: answer the question in the comments:
- MDX performance compared to T-SQL
MDX is an option / convenience / function / functionality provided by SSAS (cubes / OLAP), not an obligation
Gennady Vanin Gennady Vanin
source share