List the names of any pair of boats that have the same type. For example, one pair would be Anderson II and Escape, because the boat type for both boats is Sprite 4000. The first name listed should be the major sort key and the second name should be the minor sort key.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter8: Working With Trendlines, Pivottables, Pivotcharts, And Slicers
Section: Chapter Questions
Problem 3EYK
icon
Related questions
Question

Question: List the names of any pair of boats that have the same type. For example, one pair would be Anderson II and Escape, because the boat type for both boats is Sprite 4000. The first name listed should be the major sort key and the second name should be the minor sort key.

Database:

CREATE DATABASE ALEXAMARA; USE ALEXAMARA;

CREATE TABLE MARINA_SLIP
(SLIP_ID DECIMAL(4,0) PRIMARY KEY,
MARINA_NUM CHAR(4),
SLIP_NUM CHAR(4),
LENGTH DECIMAL(4,0),
RENTAL_FEE DECIMAL(8,2),
BOAT_NAME CHAR(50),
BOAT_TYPE CHAR(50),
OWNER_NUM CHAR(4) );
CREATE TABLE OWNER
(OWNER_NUM CHAR(4) PRIMARY KEY,
LAST_NAME CHAR(50),
FIRST_NAME CHAR(20),
ADDRESS CHAR(15),
CITY CHAR(15),
STATE CHAR(2),
ZIP CHAR(5) );

INSERT INTO MARINA_SLIP
VALUES
(1,'1','A1',40,3800.00,'Anderson II','Sprite 4000','AN75');
INSERT INTO MARINA_SLIP
VALUES
(2,'1','A2',40,3800.00,'Our Toy','Ray 4025','EL25');
INSERT INTO MARINA_SLIP
VALUES
(3,'1','A3',40,3600.00,'Escape','Sprite 4000','KE22');
INSERT INTO MARINA_SLIP
VALUES
(4,'1','B1',30,2400.00,'Gypsy','Dolphin 28','JU92');
INSERT INTO MARINA_SLIP
VALUES
(5,'1','B2',30,2600.00,'Anderson III','Sprite 3000','AN75');
INSERT INTO MARINA_SLIP
VALUES
(6,'2','1',25,1800.00,'Bravo','Dolphin 25','AD57');
INSERT INTO MARINA_SLIP
VALUES
(7,'2','2',25,1800.00,'Chinook','Dolphin 22','FE82');
INSERT INTO MARINA_SLIP
VALUES
(8,'2','3',25,2000.00,'Listy','Dolphin 25','SM72');
INSERT INTO MARINA_SLIP
VALUES
(9,'2','4',30,2500.00,'Mermaid','Dolphin 28','BL72');
INSERT INTO MARINA_SLIP
VALUES
(10,'2','5',40,4200.00,'Axxon II','Dolphin 40','NO27');
INSERT INTO MARINA_SLIP
VALUES
(11,'2','6',40,4200.00,'Karvel','Ray 4025','TR72');

 

 

OWNER
OWNER_ LAST_
NUM
FIRST_NAME
ADDRESS
CITY
STATE ZIP
NAME
Adney
Bruce and Jean | 208 Citrus
18 Wilcox
AD57
Bowton
FL
31313
Anderson Bill
Мary
Sandy and Bill
AN75
Glander Bay FL
31044
BL72
Blake
2672 Commodore Bowton
FL
31313
EL25
Elend
462 Riverside
Rivard
FL
31062
Feenstra
Daniel
7822 Coventry
Kaleva
FES2
FL
32521
JU92
Juarez
Maria
8922 Oak
Rivard
FL
31062
КЕ22
Kelly
Alyssa
5271 Waters
Bowton
FL
31313
NO27
Norton
Peter
2811 Lakewood
Lewiston
FL
32765
Becky and Dave 922 Garland
SM72
Smeltz
Glander Bay FL
31044
TR72
Trent
Ashton
922 Crest
Bay Shores
FL
30992
FIGURE 1-9 Sample owner data for Alexamara Marina Group
MARINA_SLIP
SLIP_ID MARINA_ SLIP_ LENGTH RENTAL_ BOAT_NAME BOAT_TYPE OWNER_
FEE
NUM
NUM
NUM
40 $3,800.00 Anderson II Sprite 4000 AN75
40 $3,800.00 Our Toy
11
A1
2 1
EL25
А2
Ray 4025
31
АЗ
40 $3,600.00 Escape
Sprite 4000
КЕ22
30 $2,400.00 Gypsy
30 $2,600.00 Anderson III Sprite 3000 AN75
41
B1
Dolphin 28
JU92
51
B2
62
1
25 $1,800.00 Bravo
Dolphin 25
AD57
72
2
25 $1,800.00 Chinook
Dolphin 22
FES2
25 $2,000.00 Listy
30 $2,500.00 Mermaid
40 $4,200.00 AxXxon II
40 $4,200.00 Karvel
8 2
3
Dolphin 25
SM72
BL72
Dolphin 40 NO27
TR72
92
4
Dolphin 28
10 2
5
11 2
6
Ray 4025
FIGURE 1-10 Sample data about slips at Alexamara Marina Group
Transcribed Image Text:OWNER OWNER_ LAST_ NUM FIRST_NAME ADDRESS CITY STATE ZIP NAME Adney Bruce and Jean | 208 Citrus 18 Wilcox AD57 Bowton FL 31313 Anderson Bill Мary Sandy and Bill AN75 Glander Bay FL 31044 BL72 Blake 2672 Commodore Bowton FL 31313 EL25 Elend 462 Riverside Rivard FL 31062 Feenstra Daniel 7822 Coventry Kaleva FES2 FL 32521 JU92 Juarez Maria 8922 Oak Rivard FL 31062 КЕ22 Kelly Alyssa 5271 Waters Bowton FL 31313 NO27 Norton Peter 2811 Lakewood Lewiston FL 32765 Becky and Dave 922 Garland SM72 Smeltz Glander Bay FL 31044 TR72 Trent Ashton 922 Crest Bay Shores FL 30992 FIGURE 1-9 Sample owner data for Alexamara Marina Group MARINA_SLIP SLIP_ID MARINA_ SLIP_ LENGTH RENTAL_ BOAT_NAME BOAT_TYPE OWNER_ FEE NUM NUM NUM 40 $3,800.00 Anderson II Sprite 4000 AN75 40 $3,800.00 Our Toy 11 A1 2 1 EL25 А2 Ray 4025 31 АЗ 40 $3,600.00 Escape Sprite 4000 КЕ22 30 $2,400.00 Gypsy 30 $2,600.00 Anderson III Sprite 3000 AN75 41 B1 Dolphin 28 JU92 51 B2 62 1 25 $1,800.00 Bravo Dolphin 25 AD57 72 2 25 $1,800.00 Chinook Dolphin 22 FES2 25 $2,000.00 Listy 30 $2,500.00 Mermaid 40 $4,200.00 AxXxon II 40 $4,200.00 Karvel 8 2 3 Dolphin 25 SM72 BL72 Dolphin 40 NO27 TR72 92 4 Dolphin 28 10 2 5 11 2 6 Ray 4025 FIGURE 1-10 Sample data about slips at Alexamara Marina Group
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L