Question: My name is Stan Lee and I've been tasked by the Marvel Movies to determine all the powers that the various super heroes have. I

 My name is Stan Lee and I've been tasked by the

My name is Stan Lee and I've been tasked by the Marvel Movies to determine all the powers that the various super heroes have. I need to output a list of super heroes and their powers (ordered by super hero name, then by the power's name). The database also includes the super heroes with no known powers, and they should be in the list as well. The database has two tables, "powers" and "supers" with data like the following: CREATE TABLE supers (name TEXT, id INTEGER); INSERT INTO supers VALUES ('Black Panther',1); INSERT INTO supers VALUES ('Moon Night', 2); INSERT INTO supers VALUES ('Jessica Jones', 3); INSERT INTO supers VALUES ('Blade', 4); INSERT INTO supers VALUES ('Captain America',5); INSERT INTO supers VALUES ('Captain Marvel',6); INSERT INTO supers VALUES ('Stan Lee', 7); CREATE TABLE powers (name TEXT, super_id INTEGER); INSERT INTO powers VALUES ('Enhanced Senses',1); INSERT INTO powers VALUES ('Speed', 1); INSERT INTO powers VALUES ('Magical Resistance', 1); INSERT INTO powers VALUES ('Strength', 2); INSERT INTO powers VALUES ('Speed', 2); INSERT INTO powers VALUES ('Strength',3); INSERT INTO powers VALUES ('Flight', 3); INSERT INTO powers VALUES ('Strength', 4); INSERT INTO powers VALUES ('Speed', 4); INSERT INTO powers VALUES ('Strength',5); INSERT INTO powers VALUES ('Agility', 5); INSERT INTO powers VALUES ('Stamina',5); INSERT INTO powers VALUES ('Healing', 5); INSERT INTO powers VALUES ('Strength', 6); INSERT INTO powers VALUES ('Speed', 6); INSERT INTO powers VALUES ('Stamina',6)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!