Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Spark SQL questions E. (15 pts] Spark SQL Questions A DataFrame called Employee has five columns namely, ID, Fname, Lname, Salary, DeptNo. Assume the DataFrame
Spark SQL questions
E. (15 pts] Spark SQL Questions A DataFrame called Employee has five columns namely, ID, Fname, Lname, Salary, DeptNo. Assume the DataFrame is already created. Write the following Spark SQL statement that shows, a. [5 pts) The average salary of each department (DeptNo). b. [5 pts) ID and Fname of an employee with the highest salary. c. [5 pts) Write any ranking function using the above-mentioned Employee DataFrameStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started