Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started