Question: Database Please help Study the scenario and complete the questions) that follow: Sailor Profession Sailors work in several professions and ranks, each with its own

Database
Database Please help Study the scenario and complete the questions) that follow:
Sailor Profession Sailors work in several professions and ranks, each with its
Please help

Study the scenario and complete the questions) that follow: Sailor Profession Sailors work in several professions and ranks, each with its own set of tasks that are critical to the effective operation of an ocean-going vessel. The crew of a ship is organized into four major departments, the deck department, the engineering department the stward's department, and others Jackson is 45 years old and the engineering manager with rank 8. Donald is 58 years old and the steward manager with rank 7. Others include John, 36 years old and Mark, 24 years with ranks 6 and NULL respectively. This information was extracted from a database table (sailors). O. Questions Consider the given information and respond to the following questions: 5.1 Create SQL queries to calculate the average ranking (AVG), the total of the rankings (SUM), and the number of rankings (COUNT). (5 Marks) 52 Is the result of dividing the total you just calculated by the count the same as the average? (5 Marks) 5.3 What would your response be if these procedures were performed with regard to the age field rather than the rating field? (5 Marks) 54 The following two SQL queries attempt to find the names of sailors with higher ranking and less than 25 years old SELECT S.sname FROM Sailors WHERE NOT EXISTS ( SELECT FROM Salors S2 WHERE S2 age ANY ( SELECT S2.ranking FROM Salors S2 WHERE 82.190

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!