Create SQL queries to calculate the average ranking (AVG), the total of the rankings (SUM), and the number of rankings (COUNT). 5.2 Is the result of dividing the total you just calculated by the count...

Create SQL queries to calculate the average ranking (AVG), the total of the rankings (SUM), and the number of rankings (COUNT). 5.2 Is the result of dividing the total you just calculated by the count the same as the average? 5.3 What would your response be if these procedures were performed with regard to the age field rather than the rating field? 5.4 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 S WHERE NOT EXISTS ( SELECT * FROM Sailors S2 WHERE S2.age < 25="" and="" s.ranking="" any="" (="" select="" s2.ranking="" from="" sailors="" s2="" where="" s2.age="">< 25="" );="" a.="" do="" the="" two="" queries="" calculate="" the="" result?="" if="" not,="" explain="" why.="" b.="" what="" conditions="" will="" make="" the="" two="" queries="" obtain="" the="" same="">
Sailor Profession<br>Sailors work in several professions and ranks, each with its own set of tasks that are critical to the effective<br>operation of an ocean-going vessel. The crew of a ship is organized into four major departments: the<br>deck department, the engineering department, the steward's department, and others. Jackson is 45 years<br>old and the engineering manager with rank 8. Donald is 58 years old and the steward manager with rank<br>7. Others include John, 36 years old and Mark, 24 years with ranks 6 and NULL respectively. This<br>information was extracted from a database tabo Obr.<br>

Extracted text: 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 tabo Obr.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here