Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Study the scenario and complete the question(s) that follow: Sailor Profession Sailors work in several professions and ranks, each with its own set of tasks

image text in transcribed

Study the scenario and complete the question(s) 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 steward'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). Source: Okonkwo O. (2021) Question 5 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) 5.2 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 perfomed with regard to the age field rather than the rating field? (5 Marks) 5.4. The following two SQL queries attempt to find the names of sailors with higher ranking and Pad (hp)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions