SlideShare a Scribd company logo
1 of 6
Download to read offline
input file:
-- nasa.sql
DROP table NASA_Assigned;
DROP table NASA_SpaceCraft;
DROP table NASA_Mission;
DROP table NASA_Astronaut;
DROP table NASA_Project;
Create table NASA_Project
(
projectName char(15),
CONSTRAINT NASA_ProjectsPK PRIMARY KEY (projectName)
);
Create table NASA_Astronaut
(
astroNo integer,
astroName char(25),
birth integer,
death integer,
CONSTRAINT NASA_AstronautPK PRIMARY KEY (astroNo)
);
Create table NASA_Mission
(
projectName char(15),
missionNo integer,
missionType char(2),
launchYear integer,
launchMonth integer,
launchDay integer,
days integer,
hours integer,
minutes integer,
description char(80),
CONSTRAINT NASA_MissionPK PRIMARY KEY (projectName, missionNo),
CONSTRAINT NASA_MissionFK FOREIGN KEY (projectName) REFERENCES
NASA_Project
);
Create table NASA_Assigned
(
projectName char(15),
missionNo integer,
astroNo integer,
role char(25),
CONSTRAINT NASA_AssignedPK PRIMARY KEY (projectName, missionNo, astroNo),
CONSTRAINT NASA_AssignedFK_Mission FOREIGN KEY
(projectName, missionNo) REFERENCES NASA_Mission,
CONSTRAINT NASA_AssignedFK_Astronaut FOREIGN KEY
(astroNo) REFERENCES NASA_Astronaut
);
Create table NASA_SpaceCraft
(
projectName char(15),
missionNo integer,
craftType char(10),
craftName char(20),
CONSTRAINT NASA_SpaceCraftPK PRIMARY KEY (projectName, missionNo, craftType),
CONSTRAINT NASA_SpaceCraftFK FOREIGN KEY
(projectName, missionNo) REFERENCES NASA_Mission
);
INSERT INTO NASA_Project VALUES('Mercury');
INSERT INTO NASA_Project VALUES('Gemini');
INSERT INTO NASA_Project VALUES('Apollo');
INSERT INTO NASA_Project VALUES('Skylab');
INSERT INTO NASA_Project VALUES('Apollo-Soyuz');
Insert into NASA_Astronaut VALUES( 1,'Aldrin, Buzz',1930,NULL);
Insert into NASA_Astronaut VALUES( 2,'Anders, William',1933,NULL);
Insert into NASA_Astronaut VALUES( 3,'Armstrong, Neil',1930,NULL);
Insert into NASA_Astronaut VALUES( 4,'Bean, Alan',1932,NULL);
Insert into NASA_Astronaut VALUES( 5,'Borman, Frank',1928,NULL);
Insert into NASA_Astronaut VALUES( 6,'Brand, Vance',1931,NULL);
Insert into NASA_Astronaut VALUES( 7,'Carpenter, Scott',1925,NULL);
Insert into NASA_Astronaut VALUES( 8,'Carr, Gerald',1932,NULL);
Insert into NASA_Astronaut VALUES( 9,'Cernan, Gene',1934,NULL);
Insert into NASA_Astronaut VALUES(10,'Chaffee, Roger',1935,1967);
Insert into NASA_Astronaut VALUES(11,'Collins, Michael',1930,NULL);
Insert into NASA_Astronaut VALUES(12,'Conrad, Charles',1930,1999);
Insert into NASA_Astronaut VALUES(13,'Cooper, Gordo',1927,2004);
Insert into NASA_Astronaut VALUES(14,'Cunningham, Walter',1932,NULL);
Insert into NASA_Astronaut VALUES(15,'Duke, Charles',1935,NULL);
Insert into NASA_Astronaut VALUES(16,'Eisele, Donn',1930,1987);
Insert into NASA_Astronaut VALUES(17,'Evans, Ron',1933,1990);
Insert into NASA_Astronaut VALUES(18,'Garriott, Owen',1930,NULL);
Insert into NASA_Astronaut VALUES(19,'Gibson, Edward',1936,NULL);
Insert into NASA_Astronaut VALUES(20,'Glenn, John',1921,NULL);
Insert into NASA_Astronaut VALUES(21,'Gordon, Richard',1929,NULL);
Insert into NASA_Astronaut VALUES(22,'Grissom, Gus',1926,1967);
Insert into NASA_Astronaut VALUES(23,'Haise, Fred',1933,NULL);
Insert into NASA_Astronaut VALUES(24,'Irwin, James',1930,1991);
Insert into NASA_Astronaut VALUES(25,'Kerwin, Joseph',1932,NULL);
Insert into NASA_Astronaut VALUES(26,'Lousma, Jack',1936,NULL);
Insert into NASA_Astronaut VALUES(27,'Lovell, James',1928,NULL);
Insert into NASA_Astronaut VALUES(28,'Mattingly, Thomas',1936,NULL);
Insert into NASA_Astronaut VALUES(29,'McDivitt, James',1929,NULL);
Insert into NASA_Astronaut VALUES(30,'Mitchell, Edgar',1930,NULL);
Insert into NASA_Astronaut VALUES(31,'Pogue, William',1930,NULL);
Insert into NASA_Astronaut VALUES(32,'Roosa, Stu',1933,1994);
Insert into NASA_Astronaut VALUES(33,'Schirra, Wally',1923,NULL);
Insert into NASA_Astronaut VALUES(34,'Schmitt, Harrison',1935,NULL);
Insert into NASA_Astronaut VALUES(35,'Schweickart, Rusty',1935,NULL);
Insert into NASA_Astronaut VALUES(36,'Scott, David',1932,NULL);
Insert into NASA_Astronaut VALUES(37,'Shepard, Alan',1923,1998);
Insert into NASA_Astronaut VALUES(38,'Slayton, Deke',1924,1993);
Insert into NASA_Astronaut VALUES(39,'Stafford, Thomas',1930,NULL);
Insert into NASA_Astronaut VALUES(40,'Swigert, John',1931,1982);
Insert into NASA_Astronaut VALUES(41,'Weitz, Paul',1932,NULL);
Insert into NASA_Astronaut VALUES(42,'White, Edward',1930,1967);
Insert into NASA_Astronaut VALUES(43,'Worden, Alfred',1932,NULL);
Insert into NASA_Astronaut VALUES(44,'Young, John',1930,NULL);
Insert into NASA_Mission Values('Mercury', 1, 'SO', 1961, 5, 5, 0, 0, 15, 'First American
into space');
Insert into NASA_Mission Values('Mercury', 2, 'SO', 1961, 7, 21, 0, 0, 15, 'Capsule sank after
splashdown');
Insert into NASA_Mission Values('Mercury', 3, 'EO', 1962, 2, 20, 0, 4, 55, 'First American
into orbit');
Insert into NASA_Mission Values('Mercury', 4, 'EO', 1962, 5, 24, 0, 4, 56, 'Cronkite: We may
have lost an astronaut');
Insert into NASA_Mission Values('Mercury', 5, 'EO', 1962, 10, 3, 0, 9, 13,NULL);
Insert into NASA_Mission Values('Mercury', 6, 'EO', 1963, 5, 15, 1, 10, 20,NULL);
Insert into NASA_Mission Values('Gemini', 3, 'EO', 1965, 3, 23, 0, 4, 53, 'First Ham
Sandwich in Space');
Insert into NASA_Mission Values('Gemini', 4, 'EO', 1965, 6, 3, 4, 1, 56, 'First American
Spacewalk');
Insert into NASA_Mission Values('Gemini', 5, 'EO', 1965, 8, 21, 7, 22, 55, 'Eight Days or
Bust');
Insert into NASA_Mission Values('Gemini', 6, 'EO', 1965, 12, 15, 1, 1, 52, 'First Rendevous');
Insert into NASA_Mission Values('Gemini', 7, 'EO', 1965, 12, 4, 13, 18, 35, 'Longest Flight
not on a Space Station');
Insert into NASA_Mission Values('Gemini', 8, 'EO', 1966, 3, 16, 0, 10, 41, 'First docking; first
space emergency');
Insert into NASA_Mission Values('Gemini', 9, 'EO', 1966, 6, 3, 3, 0, 20, 'The Angry
Alligator; aborted spacewalk');
Insert into NASA_Mission Values('Gemini', 10, 'EO', 1966, 7, 18, 2, 22, 47,NULL);
Insert into NASA_Mission Values('Gemini', 11, 'EO', 1966, 9, 12, 2, 23, 17,NULL);
Insert into NASA_Mission Values('Gemini', 12, 'EO', 1966, 11, 11, 3, 22, 34, 'First
unequivocally successful EVA');
Insert into NASA_Mission Values('Apollo', 1, NULL, 1967, 1, 27, 0, 0, 0, 'Crew killed in
launch test');
Insert into NASA_Mission Values('Apollo', 7, 'EO', 1968, 10, 11, 10, 20, 9, 'First successful
Apollo mission');
Insert into NASA_Mission Values('Apollo', 8, 'LO', 1968, 12, 21, 6, 3, 0, 'THAT photo of
Earth from Moon; Genesis');
Insert into NASA_Mission Values('Apollo', 9, 'EO', 1969, 3, 3, 10, 1, 0,NULL);
Insert into NASA_Mission Values('Apollo', 10, 'LO', 1969, 5, 18, 8, 0, 3,NULL);
Insert into NASA_Mission Values('Apollo', 11, 'LL', 1969, 7, 16, 8, 3, 19, 'One Small Step for
[a] man, one giant leap for mankind');
Insert into NASA_Mission Values('Apollo', 12, 'LL', 1969, 11, 14, 10, 4, 36, 'It might have
been a small step for Neil, but it was a big one for me');
Insert into NASA_Mission Values('Apollo', 13, 'LF', 1970, 4, 11, 5, 22, 54, 'Houston, we have
a problem');
Insert into NASA_Mission Values('Apollo', 14, 'LL', 1971, 1, 31, 9, 0, 0,NULL);
Insert into NASA_Mission Values('Apollo', 15, 'LL', 1971, 7, 26, 12, 7, 12, 'Man must explore;
First use of lunar rover');
Insert into NASA_Mission Values('Apollo', 16, 'LL', 1972, 4, 16, 11, 1, 51,NULL);
Insert into NASA_Mission Values('Apollo', 17, 'LL', 1972, 12, 7, 12, 13, 51,NULL);
Insert into NASA_Mission Values('Skylab', 2, 'EO', 1973, 5, 25, 28, 0, 50, 'Skylab rescue
mission');
Insert into NASA_Mission Values('Skylab', 3, 'EO', 1973, 7, 28, 59, 11, 9,NULL);
Insert into NASA_Mission Values('Skylab', 4, 'EO', 1973, 11, 16, 84, 1, 15,NULL);
Insert into NASA_Mission Values('Apollo-Soyuz', 1, 'EO', 1975, 7, 15, 9, 1, 28,NULL);
Insert into NASA_SpaceCraft Values('Mercury', 1, 'capsule', 'Freedom 7');
Insert into NASA_SpaceCraft Values('Mercury', 2, 'capsule', 'Liberty Bell 7');
Insert into NASA_SpaceCraft Values('Mercury', 3, 'capsule', 'Friendship 7');
Insert into NASA_SpaceCraft Values('Mercury', 4, 'capsule', 'Aurora 7');
Insert into NASA_SpaceCraft Values('Mercury', 5, 'capsule', 'Sigma 7');
Insert into NASA_SpaceCraft Values('Mercury', 6, 'capsule', 'Faith 7');
Insert into NASA_SpaceCraft Values('Gemini', 3, 'capsule', 'Molly Brown');
Insert into NASA_SpaceCraft Values('Apollo', 9, 'CSM', 'Gum Drop');
Insert into NASA_SpaceCraft Values('Apollo', 9, 'LM', 'Spider');
Insert into NASA_SpaceCraft Values('Apollo', 10, 'CSM', 'Charlie Brown');
Insert into NASA_SpaceCraft Values('Apollo', 10, 'LM', 'Snoopy');
Insert into NASA_SpaceCraft Values('Apollo', 11, 'CSM', 'Columbia');
Insert into NASA_SpaceCraft Values('Apollo', 11, 'LM', 'Eagle');
Insert into NASA_SpaceCraft Values('Apollo', 12, 'CSM', 'Yankee Clipper');
Insert into NASA_SpaceCraft Values('Apollo', 12, 'LM', 'Intrepid');
Insert into NASA_SpaceCraft Values('Apollo', 13, 'CSM', 'Odyssey');
Insert into NASA_SpaceCraft Values('Apollo', 13, 'LM', 'Aquarius');
Insert into NASA_SpaceCraft Values('Apollo', 14, 'CSM', 'Kitty Hawk');
Insert into NASA_SpaceCraft Values('Apollo', 14, 'LM', 'Antares');
Insert into NASA_SpaceCraft Values('Apollo', 15, 'CSM', 'Endeavour');
Insert into NASA_SpaceCraft Values('Apollo', 15, 'LM', 'Falcon');
Insert into NASA_SpaceCraft Values('Apollo', 16, 'CSM', 'Casper');
Insert into NASA_SpaceCraft Values('Apollo', 16, 'LM', 'Orion');
Insert into NASA_SpaceCraft Values('Apollo', 17, 'CSM', 'America');
Insert into NASA_SpaceCraft Values('Apollo', 17, 'LM', 'Challenger');
NEED SQL QUERY IN POSTGRES Questions: 1. Select all astronauts (atroname) who flew
project Mercury missions. Order by missionno. With the given data, the result of the (correct)
query will be: 2. Select all missions flown (projectname, missionno) and the year (Launch Year)
by astronaut number 3 (ie. astrono =3, which is Neil Armstrong), with the given data, the result
of the (correct) query will be: 3. Select the mission number, and space craft name and mission
type (missionNo, craftName, missionType) of all lunar modules (i.e. craftType = 'LM') that did
not land on the moon (i.e. missionType < 'LL'). With the given data, the result of the correct
query will be:
4. Select the astronaut (astroname) who was commander of Apollo 1. With the given data, the
result of the (correct) query will be: 5. List the names (astroname) of all lunar module pilots
(role) of lunar modules called Eagle (craftname). With the given data, the result of the (correct)
query will be: Hint: This a natural join of three tables 6. List the names (astroname) and role of
all astronauts who flew on Apollo 11. Order by role. With the given data, the result of the
(correct) query will be:

More Related Content

More from sanjeevbansal1970

In the Government of Canada, individuals within departments to whom .pdf
In the Government of Canada, individuals within departments to whom .pdfIn the Government of Canada, individuals within departments to whom .pdf
In the Government of Canada, individuals within departments to whom .pdfsanjeevbansal1970
 
In Xcode, Using decomposition, type the code that will most efficien.pdf
In Xcode, Using decomposition, type the code that will most efficien.pdfIn Xcode, Using decomposition, type the code that will most efficien.pdf
In Xcode, Using decomposition, type the code that will most efficien.pdfsanjeevbansal1970
 
In the article liars dont qualify by Junius Edwards, What is the pu.pdf
In the article liars dont qualify by Junius Edwards, What is the pu.pdfIn the article liars dont qualify by Junius Edwards, What is the pu.pdf
In the article liars dont qualify by Junius Edwards, What is the pu.pdfsanjeevbansal1970
 
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdfJohn y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdfsanjeevbansal1970
 
John is a minor who lives with his mother and stepfather and not his.pdf
John is a minor who lives with his mother and stepfather and not his.pdfJohn is a minor who lives with his mother and stepfather and not his.pdf
John is a minor who lives with his mother and stepfather and not his.pdfsanjeevbansal1970
 
John and Sara are married and live in AZ. They do not have a prenup.pdf
John and Sara are married and live in AZ.  They do not have a prenup.pdfJohn and Sara are married and live in AZ.  They do not have a prenup.pdf
John and Sara are married and live in AZ. They do not have a prenup.pdfsanjeevbansal1970
 
In Visual Studios C# console app using multiple class files create a.pdf
In Visual Studios C# console app using multiple class files create a.pdfIn Visual Studios C# console app using multiple class files create a.pdf
In Visual Studios C# console app using multiple class files create a.pdfsanjeevbansal1970
 
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdfJoel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdfsanjeevbansal1970
 
Jin has configured File History on his Windows 10 computer using an .pdf
Jin has configured File History on his Windows 10 computer using an .pdfJin has configured File History on his Windows 10 computer using an .pdf
Jin has configured File History on his Windows 10 computer using an .pdfsanjeevbansal1970
 
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdfJJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdfsanjeevbansal1970
 
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdfJim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdfsanjeevbansal1970
 
Jean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdfJean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdfsanjeevbansal1970
 
JavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdfJavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdfsanjeevbansal1970
 
Java Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdfJava Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdfsanjeevbansal1970
 
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdfJAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdfsanjeevbansal1970
 
In this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdfIn this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdfsanjeevbansal1970
 
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdfJaponyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdfsanjeevbansal1970
 
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdfJanelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdfsanjeevbansal1970
 
Jane is planning to go on a camping trip. She purchases a bottle of .pdf
Jane is planning to go on a camping trip. She purchases a bottle of .pdfJane is planning to go on a camping trip. She purchases a bottle of .pdf
Jane is planning to go on a camping trip. She purchases a bottle of .pdfsanjeevbansal1970
 
James Fishel is a 56-year-old maintenance worker who has worked for .pdf
James Fishel is a 56-year-old maintenance worker who has worked for .pdfJames Fishel is a 56-year-old maintenance worker who has worked for .pdf
James Fishel is a 56-year-old maintenance worker who has worked for .pdfsanjeevbansal1970
 

More from sanjeevbansal1970 (20)

In the Government of Canada, individuals within departments to whom .pdf
In the Government of Canada, individuals within departments to whom .pdfIn the Government of Canada, individuals within departments to whom .pdf
In the Government of Canada, individuals within departments to whom .pdf
 
In Xcode, Using decomposition, type the code that will most efficien.pdf
In Xcode, Using decomposition, type the code that will most efficien.pdfIn Xcode, Using decomposition, type the code that will most efficien.pdf
In Xcode, Using decomposition, type the code that will most efficien.pdf
 
In the article liars dont qualify by Junius Edwards, What is the pu.pdf
In the article liars dont qualify by Junius Edwards, What is the pu.pdfIn the article liars dont qualify by Junius Edwards, What is the pu.pdf
In the article liars dont qualify by Junius Edwards, What is the pu.pdf
 
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdfJohn y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
 
John is a minor who lives with his mother and stepfather and not his.pdf
John is a minor who lives with his mother and stepfather and not his.pdfJohn is a minor who lives with his mother and stepfather and not his.pdf
John is a minor who lives with his mother and stepfather and not his.pdf
 
John and Sara are married and live in AZ. They do not have a prenup.pdf
John and Sara are married and live in AZ.  They do not have a prenup.pdfJohn and Sara are married and live in AZ.  They do not have a prenup.pdf
John and Sara are married and live in AZ. They do not have a prenup.pdf
 
In Visual Studios C# console app using multiple class files create a.pdf
In Visual Studios C# console app using multiple class files create a.pdfIn Visual Studios C# console app using multiple class files create a.pdf
In Visual Studios C# console app using multiple class files create a.pdf
 
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdfJoel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
 
Jin has configured File History on his Windows 10 computer using an .pdf
Jin has configured File History on his Windows 10 computer using an .pdfJin has configured File History on his Windows 10 computer using an .pdf
Jin has configured File History on his Windows 10 computer using an .pdf
 
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdfJJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
 
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdfJim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
 
Jean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdfJean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdf
 
JavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdfJavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdf
 
Java Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdfJava Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdf
 
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdfJAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
 
In this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdfIn this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdf
 
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdfJaponyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
 
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdfJanelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
 
Jane is planning to go on a camping trip. She purchases a bottle of .pdf
Jane is planning to go on a camping trip. She purchases a bottle of .pdfJane is planning to go on a camping trip. She purchases a bottle of .pdf
Jane is planning to go on a camping trip. She purchases a bottle of .pdf
 
James Fishel is a 56-year-old maintenance worker who has worked for .pdf
James Fishel is a 56-year-old maintenance worker who has worked for .pdfJames Fishel is a 56-year-old maintenance worker who has worked for .pdf
James Fishel is a 56-year-old maintenance worker who has worked for .pdf
 

Recently uploaded

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 

Recently uploaded (20)

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 

input file-- nasa.sqlDROP table NASA_Assigned; DROP table NAS.pdf

  • 1. input file: -- nasa.sql DROP table NASA_Assigned; DROP table NASA_SpaceCraft; DROP table NASA_Mission; DROP table NASA_Astronaut; DROP table NASA_Project; Create table NASA_Project ( projectName char(15), CONSTRAINT NASA_ProjectsPK PRIMARY KEY (projectName) ); Create table NASA_Astronaut ( astroNo integer, astroName char(25), birth integer, death integer, CONSTRAINT NASA_AstronautPK PRIMARY KEY (astroNo) ); Create table NASA_Mission ( projectName char(15), missionNo integer, missionType char(2), launchYear integer, launchMonth integer, launchDay integer, days integer, hours integer, minutes integer, description char(80), CONSTRAINT NASA_MissionPK PRIMARY KEY (projectName, missionNo), CONSTRAINT NASA_MissionFK FOREIGN KEY (projectName) REFERENCES
  • 2. NASA_Project ); Create table NASA_Assigned ( projectName char(15), missionNo integer, astroNo integer, role char(25), CONSTRAINT NASA_AssignedPK PRIMARY KEY (projectName, missionNo, astroNo), CONSTRAINT NASA_AssignedFK_Mission FOREIGN KEY (projectName, missionNo) REFERENCES NASA_Mission, CONSTRAINT NASA_AssignedFK_Astronaut FOREIGN KEY (astroNo) REFERENCES NASA_Astronaut ); Create table NASA_SpaceCraft ( projectName char(15), missionNo integer, craftType char(10), craftName char(20), CONSTRAINT NASA_SpaceCraftPK PRIMARY KEY (projectName, missionNo, craftType), CONSTRAINT NASA_SpaceCraftFK FOREIGN KEY (projectName, missionNo) REFERENCES NASA_Mission ); INSERT INTO NASA_Project VALUES('Mercury'); INSERT INTO NASA_Project VALUES('Gemini'); INSERT INTO NASA_Project VALUES('Apollo'); INSERT INTO NASA_Project VALUES('Skylab'); INSERT INTO NASA_Project VALUES('Apollo-Soyuz'); Insert into NASA_Astronaut VALUES( 1,'Aldrin, Buzz',1930,NULL); Insert into NASA_Astronaut VALUES( 2,'Anders, William',1933,NULL); Insert into NASA_Astronaut VALUES( 3,'Armstrong, Neil',1930,NULL); Insert into NASA_Astronaut VALUES( 4,'Bean, Alan',1932,NULL); Insert into NASA_Astronaut VALUES( 5,'Borman, Frank',1928,NULL); Insert into NASA_Astronaut VALUES( 6,'Brand, Vance',1931,NULL);
  • 3. Insert into NASA_Astronaut VALUES( 7,'Carpenter, Scott',1925,NULL); Insert into NASA_Astronaut VALUES( 8,'Carr, Gerald',1932,NULL); Insert into NASA_Astronaut VALUES( 9,'Cernan, Gene',1934,NULL); Insert into NASA_Astronaut VALUES(10,'Chaffee, Roger',1935,1967); Insert into NASA_Astronaut VALUES(11,'Collins, Michael',1930,NULL); Insert into NASA_Astronaut VALUES(12,'Conrad, Charles',1930,1999); Insert into NASA_Astronaut VALUES(13,'Cooper, Gordo',1927,2004); Insert into NASA_Astronaut VALUES(14,'Cunningham, Walter',1932,NULL); Insert into NASA_Astronaut VALUES(15,'Duke, Charles',1935,NULL); Insert into NASA_Astronaut VALUES(16,'Eisele, Donn',1930,1987); Insert into NASA_Astronaut VALUES(17,'Evans, Ron',1933,1990); Insert into NASA_Astronaut VALUES(18,'Garriott, Owen',1930,NULL); Insert into NASA_Astronaut VALUES(19,'Gibson, Edward',1936,NULL); Insert into NASA_Astronaut VALUES(20,'Glenn, John',1921,NULL); Insert into NASA_Astronaut VALUES(21,'Gordon, Richard',1929,NULL); Insert into NASA_Astronaut VALUES(22,'Grissom, Gus',1926,1967); Insert into NASA_Astronaut VALUES(23,'Haise, Fred',1933,NULL); Insert into NASA_Astronaut VALUES(24,'Irwin, James',1930,1991); Insert into NASA_Astronaut VALUES(25,'Kerwin, Joseph',1932,NULL); Insert into NASA_Astronaut VALUES(26,'Lousma, Jack',1936,NULL); Insert into NASA_Astronaut VALUES(27,'Lovell, James',1928,NULL); Insert into NASA_Astronaut VALUES(28,'Mattingly, Thomas',1936,NULL); Insert into NASA_Astronaut VALUES(29,'McDivitt, James',1929,NULL); Insert into NASA_Astronaut VALUES(30,'Mitchell, Edgar',1930,NULL); Insert into NASA_Astronaut VALUES(31,'Pogue, William',1930,NULL); Insert into NASA_Astronaut VALUES(32,'Roosa, Stu',1933,1994); Insert into NASA_Astronaut VALUES(33,'Schirra, Wally',1923,NULL); Insert into NASA_Astronaut VALUES(34,'Schmitt, Harrison',1935,NULL); Insert into NASA_Astronaut VALUES(35,'Schweickart, Rusty',1935,NULL); Insert into NASA_Astronaut VALUES(36,'Scott, David',1932,NULL); Insert into NASA_Astronaut VALUES(37,'Shepard, Alan',1923,1998); Insert into NASA_Astronaut VALUES(38,'Slayton, Deke',1924,1993); Insert into NASA_Astronaut VALUES(39,'Stafford, Thomas',1930,NULL); Insert into NASA_Astronaut VALUES(40,'Swigert, John',1931,1982); Insert into NASA_Astronaut VALUES(41,'Weitz, Paul',1932,NULL); Insert into NASA_Astronaut VALUES(42,'White, Edward',1930,1967);
  • 4. Insert into NASA_Astronaut VALUES(43,'Worden, Alfred',1932,NULL); Insert into NASA_Astronaut VALUES(44,'Young, John',1930,NULL); Insert into NASA_Mission Values('Mercury', 1, 'SO', 1961, 5, 5, 0, 0, 15, 'First American into space'); Insert into NASA_Mission Values('Mercury', 2, 'SO', 1961, 7, 21, 0, 0, 15, 'Capsule sank after splashdown'); Insert into NASA_Mission Values('Mercury', 3, 'EO', 1962, 2, 20, 0, 4, 55, 'First American into orbit'); Insert into NASA_Mission Values('Mercury', 4, 'EO', 1962, 5, 24, 0, 4, 56, 'Cronkite: We may have lost an astronaut'); Insert into NASA_Mission Values('Mercury', 5, 'EO', 1962, 10, 3, 0, 9, 13,NULL); Insert into NASA_Mission Values('Mercury', 6, 'EO', 1963, 5, 15, 1, 10, 20,NULL); Insert into NASA_Mission Values('Gemini', 3, 'EO', 1965, 3, 23, 0, 4, 53, 'First Ham Sandwich in Space'); Insert into NASA_Mission Values('Gemini', 4, 'EO', 1965, 6, 3, 4, 1, 56, 'First American Spacewalk'); Insert into NASA_Mission Values('Gemini', 5, 'EO', 1965, 8, 21, 7, 22, 55, 'Eight Days or Bust'); Insert into NASA_Mission Values('Gemini', 6, 'EO', 1965, 12, 15, 1, 1, 52, 'First Rendevous'); Insert into NASA_Mission Values('Gemini', 7, 'EO', 1965, 12, 4, 13, 18, 35, 'Longest Flight not on a Space Station'); Insert into NASA_Mission Values('Gemini', 8, 'EO', 1966, 3, 16, 0, 10, 41, 'First docking; first space emergency'); Insert into NASA_Mission Values('Gemini', 9, 'EO', 1966, 6, 3, 3, 0, 20, 'The Angry Alligator; aborted spacewalk'); Insert into NASA_Mission Values('Gemini', 10, 'EO', 1966, 7, 18, 2, 22, 47,NULL); Insert into NASA_Mission Values('Gemini', 11, 'EO', 1966, 9, 12, 2, 23, 17,NULL); Insert into NASA_Mission Values('Gemini', 12, 'EO', 1966, 11, 11, 3, 22, 34, 'First unequivocally successful EVA'); Insert into NASA_Mission Values('Apollo', 1, NULL, 1967, 1, 27, 0, 0, 0, 'Crew killed in launch test'); Insert into NASA_Mission Values('Apollo', 7, 'EO', 1968, 10, 11, 10, 20, 9, 'First successful Apollo mission'); Insert into NASA_Mission Values('Apollo', 8, 'LO', 1968, 12, 21, 6, 3, 0, 'THAT photo of Earth from Moon; Genesis');
  • 5. Insert into NASA_Mission Values('Apollo', 9, 'EO', 1969, 3, 3, 10, 1, 0,NULL); Insert into NASA_Mission Values('Apollo', 10, 'LO', 1969, 5, 18, 8, 0, 3,NULL); Insert into NASA_Mission Values('Apollo', 11, 'LL', 1969, 7, 16, 8, 3, 19, 'One Small Step for [a] man, one giant leap for mankind'); Insert into NASA_Mission Values('Apollo', 12, 'LL', 1969, 11, 14, 10, 4, 36, 'It might have been a small step for Neil, but it was a big one for me'); Insert into NASA_Mission Values('Apollo', 13, 'LF', 1970, 4, 11, 5, 22, 54, 'Houston, we have a problem'); Insert into NASA_Mission Values('Apollo', 14, 'LL', 1971, 1, 31, 9, 0, 0,NULL); Insert into NASA_Mission Values('Apollo', 15, 'LL', 1971, 7, 26, 12, 7, 12, 'Man must explore; First use of lunar rover'); Insert into NASA_Mission Values('Apollo', 16, 'LL', 1972, 4, 16, 11, 1, 51,NULL); Insert into NASA_Mission Values('Apollo', 17, 'LL', 1972, 12, 7, 12, 13, 51,NULL); Insert into NASA_Mission Values('Skylab', 2, 'EO', 1973, 5, 25, 28, 0, 50, 'Skylab rescue mission'); Insert into NASA_Mission Values('Skylab', 3, 'EO', 1973, 7, 28, 59, 11, 9,NULL); Insert into NASA_Mission Values('Skylab', 4, 'EO', 1973, 11, 16, 84, 1, 15,NULL); Insert into NASA_Mission Values('Apollo-Soyuz', 1, 'EO', 1975, 7, 15, 9, 1, 28,NULL); Insert into NASA_SpaceCraft Values('Mercury', 1, 'capsule', 'Freedom 7'); Insert into NASA_SpaceCraft Values('Mercury', 2, 'capsule', 'Liberty Bell 7'); Insert into NASA_SpaceCraft Values('Mercury', 3, 'capsule', 'Friendship 7'); Insert into NASA_SpaceCraft Values('Mercury', 4, 'capsule', 'Aurora 7'); Insert into NASA_SpaceCraft Values('Mercury', 5, 'capsule', 'Sigma 7'); Insert into NASA_SpaceCraft Values('Mercury', 6, 'capsule', 'Faith 7'); Insert into NASA_SpaceCraft Values('Gemini', 3, 'capsule', 'Molly Brown'); Insert into NASA_SpaceCraft Values('Apollo', 9, 'CSM', 'Gum Drop'); Insert into NASA_SpaceCraft Values('Apollo', 9, 'LM', 'Spider'); Insert into NASA_SpaceCraft Values('Apollo', 10, 'CSM', 'Charlie Brown'); Insert into NASA_SpaceCraft Values('Apollo', 10, 'LM', 'Snoopy'); Insert into NASA_SpaceCraft Values('Apollo', 11, 'CSM', 'Columbia'); Insert into NASA_SpaceCraft Values('Apollo', 11, 'LM', 'Eagle'); Insert into NASA_SpaceCraft Values('Apollo', 12, 'CSM', 'Yankee Clipper'); Insert into NASA_SpaceCraft Values('Apollo', 12, 'LM', 'Intrepid'); Insert into NASA_SpaceCraft Values('Apollo', 13, 'CSM', 'Odyssey'); Insert into NASA_SpaceCraft Values('Apollo', 13, 'LM', 'Aquarius');
  • 6. Insert into NASA_SpaceCraft Values('Apollo', 14, 'CSM', 'Kitty Hawk'); Insert into NASA_SpaceCraft Values('Apollo', 14, 'LM', 'Antares'); Insert into NASA_SpaceCraft Values('Apollo', 15, 'CSM', 'Endeavour'); Insert into NASA_SpaceCraft Values('Apollo', 15, 'LM', 'Falcon'); Insert into NASA_SpaceCraft Values('Apollo', 16, 'CSM', 'Casper'); Insert into NASA_SpaceCraft Values('Apollo', 16, 'LM', 'Orion'); Insert into NASA_SpaceCraft Values('Apollo', 17, 'CSM', 'America'); Insert into NASA_SpaceCraft Values('Apollo', 17, 'LM', 'Challenger'); NEED SQL QUERY IN POSTGRES Questions: 1. Select all astronauts (atroname) who flew project Mercury missions. Order by missionno. With the given data, the result of the (correct) query will be: 2. Select all missions flown (projectname, missionno) and the year (Launch Year) by astronaut number 3 (ie. astrono =3, which is Neil Armstrong), with the given data, the result of the (correct) query will be: 3. Select the mission number, and space craft name and mission type (missionNo, craftName, missionType) of all lunar modules (i.e. craftType = 'LM') that did not land on the moon (i.e. missionType < 'LL'). With the given data, the result of the correct query will be: 4. Select the astronaut (astroname) who was commander of Apollo 1. With the given data, the result of the (correct) query will be: 5. List the names (astroname) of all lunar module pilots (role) of lunar modules called Eagle (craftname). With the given data, the result of the (correct) query will be: Hint: This a natural join of three tables 6. List the names (astroname) and role of all astronauts who flew on Apollo 11. Order by role. With the given data, the result of the (correct) query will be: