Create tables, please do add extra columns of your own choice in each table, insert rows and select rows with different criteria as we discussed in the class. Also, implement inner and outer joins on fields of your choice. Send me the screen shots of row selections and inner and outer joins. create table author_tbl( id INT NOT NULL AUTO_INCREMENT, author VARCHAR(40) NOT NULL, PRIMARY KEY ( id ) ); insert into author_tbl (author) VALUES ('John Smith'); insert into author_tbl (author) VALUES ('Melissa Ding'); insert into author_tbl (author) VALUES ('Robert Smith'); insert into author_tbl (author) VALUES ('Jeena Lui'); insert into author_tbl (author) VALUES ('Zoe Sing'); insert into author_tbl (author) VALUES ('Tessa Baker'); insert into author_tbl (author) VALUES ('Nancy Pelosi'); insert into author_tbl (author) VALUES ('Paul Pelosi'); insert into author_tbl (author) VALUES ('Smith Smith'); insert into author_tbl (author) VALUES ('John Zhang'); create table tutorials_tbl( id INT NOT NULL AUTO_INCREMENT, tutorial_title VARCHAR(100) NOT NULL, author_id INT NOT NULL, PRIMARY KEY ( id ), FOREIGN KEY (author_id) );

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter5: Working With Excel Tables, Pivottables, And Pivotcharts
Section: Chapter Questions
Problem 10RA
icon
Related questions
icon
Concept explainers
Question

I need help with this sql lab please help me

go to http://sqlfiddle.com/
Create tables, please do add extra columns of your own choice in each table, insert rows and select rows with different
criteria as we discussed in the class.
Also, implement inner and outer joins on fields of your choice.
Send me the screen shots of row selections and inner and outer joins.
create table author_tbl(
id INT NOT NULL AUTO_INCREMENT,
author VARCHAR(40) NOT NULL,
PRIMARY KEY ( id )
);
insert into author_tbl (author) VALUES ('John Smith');
insert into author_tbl (author) VALUES ('Melissa Ding');
insert into author_tbl (author) VALUES ('Robert Smith');
insert into author_tbl (author) VALUES ('Jeena Lui');
insert into author_tbl (author) VALUES ('Zoe Sing');
insert into author_tbl (author) VALUES ('Tessa Baker');
insert into author_tbl (author) VALUES ('Nancy Pelosi');
insert into author_tbl (author) VALUES ('Paul Pelosi');
insert into author_tbl (author) VALUES ('Smith Smith');
insert into author_tbl (author) VALUES ('John Zhang');
create table tutorials_tbl(
id INT NOT NULL AUTO_INCREMENT,
tutorial_title VARCHAR(100) NOT NULL,
author_id INT NOT NULL,
PRIMARY KEY ( id ),
FOREIGN KEY (author_id)
);
Transcribed Image Text:go to http://sqlfiddle.com/ Create tables, please do add extra columns of your own choice in each table, insert rows and select rows with different criteria as we discussed in the class. Also, implement inner and outer joins on fields of your choice. Send me the screen shots of row selections and inner and outer joins. create table author_tbl( id INT NOT NULL AUTO_INCREMENT, author VARCHAR(40) NOT NULL, PRIMARY KEY ( id ) ); insert into author_tbl (author) VALUES ('John Smith'); insert into author_tbl (author) VALUES ('Melissa Ding'); insert into author_tbl (author) VALUES ('Robert Smith'); insert into author_tbl (author) VALUES ('Jeena Lui'); insert into author_tbl (author) VALUES ('Zoe Sing'); insert into author_tbl (author) VALUES ('Tessa Baker'); insert into author_tbl (author) VALUES ('Nancy Pelosi'); insert into author_tbl (author) VALUES ('Paul Pelosi'); insert into author_tbl (author) VALUES ('Smith Smith'); insert into author_tbl (author) VALUES ('John Zhang'); create table tutorials_tbl( id INT NOT NULL AUTO_INCREMENT, tutorial_title VARCHAR(100) NOT NULL, author_id INT NOT NULL, PRIMARY KEY ( id ), FOREIGN KEY (author_id) );
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Quantum Physics', 'John Smith');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Newtonian Physics', 'Melissa Ding');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Algebra', 'Robert Smith');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Liner Algebra', 'Jeena Lui');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Pre-Calculus', 'Zoe Sing');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Calculus', 'Tessa Baker');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Geomerty', 'Nancy Pelosi');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Number Theory', 'Paul Pelosi');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Discreate', 'Smith Smith');
insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Statistics', John Zhang');
create table address_tbl(
id INT NOT NULL AUTO_INCREMENT,
id_author INT NOT NULL,
address VARCHAR(140),
);
city VARCHAR(72),
state VARCHAR(2),
zip VARCHAR(16),
PRIMARY KEY ( id )
insert into address_tbl (1, tutorial_author) VALUES (1, '123 Omer Street', 'Union City', 'CA', 945333);
insert into address_tbl (1, tutorial_author) VALUES (2, '2345 Thurston Street', 'Daily City', 'MD', 945313);
insert into address_tbl (1, tutorial_author) VALUES (3, '44123 Isfahan Drive', 'San Jose', 'CA', 945323);
insert into address_tbl (1, tutorial_author) VALUES (4, '5423 Barbera Ct', 'Union City', 'CA', 945343);
insert into address_tbl (1, tutorial_author) VALUES (5, '3421 Ellis Street', 'Fremont', 'OH', 945353);
insert into address_tbl (1, tutorial_author) VALUES (6, '1234 Alec Street', 'San Bruno', 'WA', 945363);
insert into address_tbl (1, tutorial_author) VALUES (7, '4567 Mike Road', 'Redwood City', 'CA', 945377);
insert into address_tbl (1, tutorial_author) VALUES (8, '7890 Keren Drive', 'San Francisco', 'CA', 945388);
insert into address_tbl (1, tutorial_author) VALUES (9, '3245 Fox Street', 'Tracy', 'CA' 945399);
insert into address_tbl (1, tutorial_author) VALUES (10, '1789 Zooey Street', 'Modesto', 'CA' 945322);
Transcribed Image Text:insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Quantum Physics', 'John Smith'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Newtonian Physics', 'Melissa Ding'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Algebra', 'Robert Smith'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Liner Algebra', 'Jeena Lui'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Pre-Calculus', 'Zoe Sing'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Calculus', 'Tessa Baker'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Geomerty', 'Nancy Pelosi'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Number Theory', 'Paul Pelosi'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Discreate', 'Smith Smith'); insert into tutorials_tbl (tutorial_title, tutorial_author) VALUES ('Math Statistics', John Zhang'); create table address_tbl( id INT NOT NULL AUTO_INCREMENT, id_author INT NOT NULL, address VARCHAR(140), ); city VARCHAR(72), state VARCHAR(2), zip VARCHAR(16), PRIMARY KEY ( id ) insert into address_tbl (1, tutorial_author) VALUES (1, '123 Omer Street', 'Union City', 'CA', 945333); insert into address_tbl (1, tutorial_author) VALUES (2, '2345 Thurston Street', 'Daily City', 'MD', 945313); insert into address_tbl (1, tutorial_author) VALUES (3, '44123 Isfahan Drive', 'San Jose', 'CA', 945323); insert into address_tbl (1, tutorial_author) VALUES (4, '5423 Barbera Ct', 'Union City', 'CA', 945343); insert into address_tbl (1, tutorial_author) VALUES (5, '3421 Ellis Street', 'Fremont', 'OH', 945353); insert into address_tbl (1, tutorial_author) VALUES (6, '1234 Alec Street', 'San Bruno', 'WA', 945363); insert into address_tbl (1, tutorial_author) VALUES (7, '4567 Mike Road', 'Redwood City', 'CA', 945377); insert into address_tbl (1, tutorial_author) VALUES (8, '7890 Keren Drive', 'San Francisco', 'CA', 945388); insert into address_tbl (1, tutorial_author) VALUES (9, '3245 Fox Street', 'Tracy', 'CA' 945399); insert into address_tbl (1, tutorial_author) VALUES (10, '1789 Zooey Street', 'Modesto', 'CA' 945322);
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr