Write a query to list all the employees whose names are starting withµR¶ and ending with µO¶.
Find all departments which have more than three employees.
Display those employees whose name contains µA¶.
) Write the SQL expressions for the following data base.
Find the age of the youngest sailor for each rating level.
Find the age of the youngest sailor who is eligible to vote for eachrating level with atleast two such sailors.
Find the number of reservations for each red boat.
Find the average age of sailor for each rating level that atleast twosailors.
)Consider the following schema.
The primary keys are underlined.Sailors(Sailor_id,sailor_name,Sailor_rating,Sailor_age)Boats(Boat_id,Boat_name,Boat_color)Reserves(Sailor_id,Boat_id,day) Write the queries in SQL for the following.
Find the names of sailors who have reserved at least one boat.
Find the ages of sailors whose names begin and end with C and has atleastthree characters.
Find the names of sailors who have reserved a blue or a yellow boat.
Find the names of sailors who have reserved a blue and a yellow boat.
Find the names of all sailors who have reserved blue boats but not yellowboats.
Find the names of sailors who have reserved boat number 120
Find the name of sailors who have reserved a green boat
Find the names of sailors who have not reserved a green boat
Find the names of sailors with highest rating.
) Consider the following schema for the company data base. The primary keys are underlined.
Employee(SSN, fname, lname, birthdate, address, salary, dnumber)Department(Dnumber, Dname, Dlocation)Perform the following operations using SQl. Assume the data.
Insert a record into employee table.
Delete an employee with SSN equal to 10.
Update the Dnumber of the employee tuple having salary greater thanRs. 10,000.
Retrieve the name and address of all employees who work for the ³XYZ´department.