In Impala, which behavior do aggregate functions such as AVG() and SUM() exhibit when a column contains NULL values?
Calculate Aggregate Statistics
Question · Medium
Wedding seating, as a LEFT JOIN
Short
A data analyst needs the number of distinct customer IDs in an orders table using Impala. Which expression returns that value?
Question · Easy
When you write SELECT region, SUM(amount) FROM sales GROUP BY region in Hive, what does the GROUP BY clause accomplish?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which clause must you use to filter the results of a GROUP BY query based on the value of an aggregate function such as SUM(amount) > 1000?
A report needs the highest and lowest transaction values per store. Which pair of Impala aggregate functions provides these directly?
Which statement correctly describes the difference between COUNT(*) and COUNT(column_name) in Hive and Impala?
An analyst wants a running monthly total of sales without collapsing individual rows. Which feature supports this in Hive and Impala?
Question · Hard
Which Impala aggregate function returns the arithmetic mean of a numeric column?
In the query SELECT dept, COUNT(*) FROM employees GROUP BY dept HAVING COUNT(*) >= 5, what is returned?
What is the logical order of evaluation for a SELECT statement that contains WHERE, GROUP BY, HAVING, and ORDER BY clauses in Hive/Impala?
A column called revenue is stored as a STRING but contains numeric values. Which approach lets SUM() aggregate it correctly in Impala?
Which Hive/Impala construct generates subtotals for each grouping column plus a grand total in a single query?
What does the NDV() function in Impala estimate?
An analyst computes SELECT AVG(salary) FROM employees but salary has several NULL entries. How does the NULL handling affect the average?
Which clause is required in an Impala query that uses an aggregate function like SUM() over the entire table with no grouping?
Which two Impala functions compute population and sample standard deviation of a numeric column?
To produce one total amount per customer per month, which columns should appear in the GROUP BY clause of SELECT customer_id, month, SUM(amount) FROM orders?
Which statement about combining DISTINCT with an aggregate, as in COUNT(DISTINCT product_id), is accurate in Impala?
An analyst needs both total revenue and the number of orders in one row. Which SELECT list achieves this in a single aggregate query?
Why does running COMPUTE STATS on a table improve the accuracy of aggregate and join query plans in Impala?
Which JOIN type returns only the rows that have matching keys in both the left and right tables?
Use Apache Hive And Impala
A query must return all customers, including those who have placed no orders, alongside any matching order rows. Which join should be used with customers on the left?
In a CDP data warehouse schema, what is the role of a foreign key column such as customer_id in an orders table?
Which Impala/Hive expression safely converts the STRING '2026-06-08' into a date-typed value?
Before pulling data, an analyst needs to discover which tables exist in the sales database within Impala. Which statement lists them?
What is the key difference between UNION and UNION ALL when combining two SELECT results in Hive/Impala?
When combining two SELECT statements with UNION ALL, which requirement must both queries satisfy?
Which join returns the Cartesian product, pairing every row of the left table with every row of the right table?
An analyst writes SELECT c.name, o.total FROM customers c JOIN orders o ON c.id = o.customer_id. What does the ON clause specify?
A LEFT SEMI JOIN between orders and customers is often used to do what efficiently?
Which Impala numeric type is recommended for currency values to avoid floating-point rounding errors?
How does Impala typically treat a join when the smaller of the two tables fits in memory and statistics are available?
Which statement about primary keys declared on Hive/Impala tables in CDP is most accurate?
An analyst needs to combine this year's and last year's sales tables that have identical columns into a single result set, keeping every row. Which operator is best?
Which set operator returns only the rows that appear in both of two SELECT result sets in Impala?
An analyst joins three tables: orders, customers, and regions. Why is providing accurate table statistics important for this multi-table join in Impala?
Which expression correctly converts an Impala BIGINT order count into a STRING for concatenation in a report label?
What does a FULL OUTER JOIN between two tables return?
An analyst must identify which database in Impala holds a table named transactions before querying it. Which command shows all available databases?
When joining orders to a customers dimension where some orders reference deleted customers, which join keeps all orders even if the customer row is missing?
Which Impala statement creates a logical view named monthly_sales that stores a query definition without copying data?
Use Apache Hive And Impala Sql
What is the primary benefit of defining a view over a complex multi-join query in Hive/Impala?
Which statement creates a new table whose schema and rows are derived from an existing query result in Impala?
An analyst wants to create a table that stores data in a columnar format optimized for analytic scans. Which clause specifies the file format?
After creating a new external Parquet table in Hive and adding files, which Impala command refreshes Impala's metadata so it sees the new table and data?
Which join condition style lets you join two tables on equally named columns concisely in Impala?
Loading more…