Find the names of all ships that begin with the letter r

Assignment Help Other Subject
Reference no: EM132237783

Assignment

Consider the following database schema, which is concerned with World War II capital ships.
It involves the following relations:
Classes(class, type, country, numGuns, bore, displacement)
Ships(name, class, launched)
Battles(name, date)
Outcomes(ship, battle, result)

Ships are built in "classes" from the same design, and the class is usually named for the first ship of that class. The relation Classes records the name of the class, the type ('bb' for battleship or 'be' for battlecruiser), the country that built the ship, the number of main guns, the bore (diameter of the gun barrel, in inches) of the main guns, and the displacement (weight, in tons). Relation Ships records the name of the ship, the name of its class, and the year in which the ship was launched. Relation Battles gives the name and date of battles involving these ships, and relation Outcomes gives the result (sunk, damaged, or ok) for each ship in each battle.

Some sample data for these relations is shown on the last two pages of this document.

Furthermore, assume that the data types of the above attributes are consistent with the following Standard SQL declarations:

CREATE TABLE Classes (
class CHAR(20),
type CHAR(5),
country CHAR(20),
numGuns INTEGER,
bore DECIMAL(3,1),
displacement INTEGER
);
CREATE TABLE Ships (
name CHAR(30),
class CHAR(20),
launched INTEGER
);
CREATE TABLE Battles (
name CHAR(30),
date DATE
);
CREATE TABLE Outcomes (
ship CHAR(30),
battle CHAR(30),
result CHAR(10)
);

1) Using MySQL, create the above four relations and populate them with the sample data given on the last two pages of this document.

2) Write the following queries and apply them to the above database:

a) Find the names of all ships launched prior to 1918, but call the resulting column ShipName.

b) Find the names of ships sunk in battle and the name of the battle in which they were sunk.

c) Find the names of all ships that begin with the letter "R".

d) Find the names of all ships whose name consists of three or more words (e.g., King George V).

e) Find the ships heavier than 35,000 tons.

f) List the name, displacement, and number of guns of the ships engaged in the battle of Guadalcanal.

g) List all the ships mentioned in the database. (Remember that all these ships may not appear in the Ships relation.)

h) Find the names of the ships with a 16-inch bore.

i) Find the battles in which ships of the Kongo class participated.

j) Find the countries whose ships had the largest number of guns.

Create one pdf document demonstrating your answers to the above ten MySQL queries and show the results of those queries when applied to the sample data given below. (Attcahed below)

Attachment:- Assignment DAta.rar

Reference no: EM132237783

Questions Cloud

Describe the collaboration and the partners involved : Describe the collaboration and the partners involved. Analyze the strategic significance and why you think the brands decided to partner.
Calculate descriptive statistics for your data in the table : Calculate descriptive statistics for your data in the table provided in the Excel spreadsheet. Use the means and standard deviations of the data to decide.
Particularly interested in seascape painting : Serena works and displays her paintings in a local gallery. Ivette sees her work and is particularly interested in a seascape painting.
Audience when using business communication : Why is good grammar, spelling, and punctuation essential to convey accurate meaning to an audience when using business communication?
Find the names of all ships that begin with the letter r : List the name, displacement, and number of guns of the ships engaged in the battle of Guadalcanal. Find the names of the ships with a 16-inch bore.
Organized birthday parties for all the other employees : Ashley has organized birthday parties for all the other employees in her office for 10 years.
Describe the bossuets theology of the admirable reversal : Explain exactly what it meant for Vincent in the 17th century to refer to poor persons as being: "Our Lords and Masters."
Barriers to entry and exit affect health care strategy : Describe how “barriers to entry” and “barriers to exit” affect health care strategy.
How ethical recruitment and data collection were ensured : Using what you learned from your reading, name the research design used and why it was likely selected by the author(s).

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd