Find the departments having average salary greater than 500. SQL
Given Employees table, the age of employees have been set incorrect. The age of 2nd row is 1st row, 3rd row age is 2nd row. The age of first row is last row's age. Write a select query to correct the age.
Given a function with 2 params lets say "abcde" and "eabcd". Write a function that returns true if the second param(eabcd) is a validation roatation of first param. "ebdca" is not a valid rotation.