Complete the code to create a Hive table named 'employees'.
CREATE TABLE employees (id INT, name STRING) [1];The STORED AS TEXTFILE clause defines the file format for the Hive table, which is necessary when creating tables.
Complete the code to query all records from the 'employees' table.
SELECT [1] FROM employees;The * symbol selects all columns from the table.
Fix the error in the Hive query to count employees.
SELECT COUNT([1]) FROM employees;Using COUNT(*) counts all rows in the table.
Fill both blanks to create a Hive query that filters employees with id greater than 100.
SELECT * FROM employees WHERE id [1] [2];
The query filters rows where id > 100.
Fill all three blanks to create a dictionary comprehension that maps employee names to their ids if id is less than 200.
{ [3].[1]: [3].[2] for [3] in employees if [3].id < 200 }This comprehension creates a dictionary with employee names as keys and ids as values for employees with id less than 200.