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: