Complete the code to select all columns from the table named 'employees'.
SELECT [1] FROM employees;The asterisk (*) selects all columns from the table.
Complete the code to get the current date using a Snowflake function.
SELECT [1]();CURRENT_DATE() returns the current date in Snowflake.
Fix the error in the code to convert a string '2024-06-01' to a date type.
SELECT TO_DATE([1], 'YYYY-MM-DD');
The date string must be enclosed in single quotes and match the format 'YYYY-MM-DD'.
Fill both blanks to select the first 5 rows ordered by salary descending.
SELECT * FROM employees ORDER BY salary [1] LIMIT [2];
Use DESC to order salaries from highest to lowest and LIMIT 5 to get the first 5 rows.
Fill all three blanks to select employee names in uppercase where salary is greater than 50000.
SELECT [1](name) FROM employees WHERE salary [2] [3];
UPPER(name) converts names to uppercase, salary > 50000 filters employees with salary above 50000.