Question: CREATE TABLE persons ( id INTEGER PRIMARY KEY AUTOINCREMENT, fullname TEXT, age INTEGER ) ; INSERT INTO persons ( fullname , age ) VALUES (
CREATE TABLE persons
id INTEGER PRIMARY KEY AUTOINCREMENT,
fullname TEXT,
age INTEGER;
INSERT INTO persons fullname age VALUES Bobby McBobbyFace", ;
INSERT INTO persons fullname age VALUES Lucy BoBucie", ;
INSERT INTO persons fullname age VALUES Banana FoFanna", ;
INSERT INTO persons fullname age VALUES Shish Kabob", ;
INSERT INTO persons fullname age VALUES Fluffy Sparkles", ;
CREATE table hobbies
id INTEGER PRIMARY KEY AUTOINCREMENT,
personid INTEGER,
name TEXT;
INSERT INTO hobbies personid name VALUES "drawing";
INSERT INTO hobbies personid name VALUES "coding";
INSERT INTO hobbies personid name VALUES "dancing";
INSERT INTO hobbies personid name VALUES "coding";
INSERT INTO hobbies personid name VALUES "skating";
INSERT INTO hobbies personid name VALUES "rowing";
INSERT INTO hobbies personid name VALUES "drawing";
INSERT INTO hobbies personid name VALUES "coding";
INSERT INTO hobbies personid name VALUES "dillydallying";
INSERT INTO hobbies personid name VALUES "meowing";
CREATE table friends
id INTEGER PRIMARY KEY AUTOINCREMENT,
personid INTEGER,
personid INTEGER;
INSERT INTO friends personid personid
VALUES ;
INSERT INTO friends personid personid
VALUES ; Now, use another SELECT with a JOIN to show the names of each pair of friends, based on the data in the friends table.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
