Question 171

How do stored procedures contribute to data analysis efficiency in SQL compared to UDFs?
  • Question 172

    A data analyst is working with a large table partitioned by (DATE type). The table contains millions of rows spanning several years. They need to optimize a query that retrieves sales data for a specific quarter of 2023. The initial query is: 'SELECT FROM sales_data WHERE EXTRACT(YEAR FROM sale_date) = 2023 AND EXTRACT(QUARTER FROM sale_date) = To improve performance using partition pruning, which of the following queries is the MOST efficient alternative?