Perform a LEFT OUTER JOIN between the tables Wicketkeeping and Batting. You may select any column(s). Look at the result and state how many wicketkeepers have not played as batsmen (no need to write code for this part) ?

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
Question

Write SQL Code for 

  • Perform a LEFT OUTER JOIN between the tables Wicketkeeping and Batting. You may select any column(s). Look at the result and state how many wicketkeepers have not played as batsmen (no need to write code for this part) ?

table is in picture

Balling
REATE TABLE Batting (
Player CHAR(25),
CarrerSpan VARCHAR(20),
Matches INT,
Innings INT,
Playing INT,
Runs INT,
Highestscore CHAR(10),
AverageScore NUMERIC,
BallsFaced INT,
strikeRate NUMERIC,
Hundreds INT,
Fifties INT,
Zeros INT,
Fours INT,
Sixs INT
NSERT INTO Batting
ALUES ('JP Duminy', '2007-2018',
NSERT INTO Batting
ALUES ('AB de villiers', '2006-2017',
NSERT INTO Batting
FALUES ('HM Amla', '2009-2018', 41, 41, 5,
NSERT INTO Batting
ALUES ('F du Plessis', '2012-2017',
NSERT INTO Batting
ALUES ('DA Miller', '2010-2018',
NSERT INTO Batting
ALUES('GC Smith', '2005-2011', 33, 33, 2,
NSERT INTO Batting
ALUES('Q de Kock','2012-2018', 32, 32, 4,
NSERT INTO Batting
ALUES ('JH Kallis', '2005- 2012',
NSERT INTO Batting
ALUES('JA Morkel',
NSERT INTO Batting
ALUES('F Behardien',
NSERT INTO Batting
77, 71, 22,
1825,
'96*',
37.24,
1468,
124.31, 0,
11,
б,
130,
65);
78, 75, 11,
1672,
'79*',
26.12,
1237,
135.16, 0,
10,
5,
140,
60);
1158,
'97*',
32.16,
883,
131.14, 0,
7,
2,
133,
23);
36, 36, 6,
1129,
119,
37.63,
849,
132.97, 1,
7,
0,
102,
35);
58, 51, 15,
1043,
'101*', 28.97,
745,
140.00, 1,
1,
0,
71,
46);
982,
'89*',
31.67,
770,
127.53, 0,
5,
1,
123,
26);
821,
59,
29.32,
637,
128.88, 0,
2,
3,
97,
24);
25, 23, 4,
666,
73,
35.05,
558,
119.35, 0,
5,
0,
56,
20);
'2005 - 2015',
50, 38, 11,
572,
43,
21.18,
402,
142.28, 0,
0,
1,
29,
39);
'2012-2018',
37, 29, 13,
515,
'64*',
32.18,
402,
128.10, 0,
1,
1,
37,
16);
Transcribed Image Text:Balling REATE TABLE Batting ( Player CHAR(25), CarrerSpan VARCHAR(20), Matches INT, Innings INT, Playing INT, Runs INT, Highestscore CHAR(10), AverageScore NUMERIC, BallsFaced INT, strikeRate NUMERIC, Hundreds INT, Fifties INT, Zeros INT, Fours INT, Sixs INT NSERT INTO Batting ALUES ('JP Duminy', '2007-2018', NSERT INTO Batting ALUES ('AB de villiers', '2006-2017', NSERT INTO Batting FALUES ('HM Amla', '2009-2018', 41, 41, 5, NSERT INTO Batting ALUES ('F du Plessis', '2012-2017', NSERT INTO Batting ALUES ('DA Miller', '2010-2018', NSERT INTO Batting ALUES('GC Smith', '2005-2011', 33, 33, 2, NSERT INTO Batting ALUES('Q de Kock','2012-2018', 32, 32, 4, NSERT INTO Batting ALUES ('JH Kallis', '2005- 2012', NSERT INTO Batting ALUES('JA Morkel', NSERT INTO Batting ALUES('F Behardien', NSERT INTO Batting 77, 71, 22, 1825, '96*', 37.24, 1468, 124.31, 0, 11, б, 130, 65); 78, 75, 11, 1672, '79*', 26.12, 1237, 135.16, 0, 10, 5, 140, 60); 1158, '97*', 32.16, 883, 131.14, 0, 7, 2, 133, 23); 36, 36, 6, 1129, 119, 37.63, 849, 132.97, 1, 7, 0, 102, 35); 58, 51, 15, 1043, '101*', 28.97, 745, 140.00, 1, 1, 0, 71, 46); 982, '89*', 31.67, 770, 127.53, 0, 5, 1, 123, 26); 821, 59, 29.32, 637, 128.88, 0, 2, 3, 97, 24); 25, 23, 4, 666, 73, 35.05, 558, 119.35, 0, 5, 0, 56, 20); '2005 - 2015', 50, 38, 11, 572, 43, 21.18, 402, 142.28, 0, 0, 1, 29, 39); '2012-2018', 37, 29, 13, 515, '64*', 32.18, 402, 128.10, 0, 1, 1, 37, 16);
CREATE TABLE wicketkeeping (
Player CHAR(25),
CarrerSpan VARCHAR(20),
Matches INT,
Innings INT,
Dismissals INT,
Catches INT,
Stumpings INT,
MaxiumDismissalsInOneInning CHAR(15),
DismissalsPerInnings NUMERIC
INSERT INTO wicketkeeping
JALUES('Q de Kock',
INSERT INTO wicketkeeping
VALUES('AB de villiers', '2006-2017',
INSERT INTO wicketKeeping
VALUES('MV Boucher',
INSERT INTO wicketKeeping
VALUES('M Mosehle',
INSERT INTO wicketKeeping
JALUES('H Klaasen',
INSERT INTO wicketkeeping
JALUES ('HG Kuhn',
INSERT INTO WwicketKeeping
VALUES('MN van Wyk',
INSERT INTO wicketKeeping
JALUES ('DJ Vilas',
30,
9,
'4 (3ct 1st)', 1.218);
'2012-2018',
32,
32,
39,
7,
'4 (4ct Øst)', 1.076);
78,
26,
28,
21,
19,
18,
1,
'3 (3ct Ost)', 0.760);
'2005- 2010',
25,
25,
6,
2,
'3 (2ct 1st)',
1.142);
'2017-2017',
7,
7,
8,
0,
'2 (2ct Ost)', 1.333);
'2018-2018',
4,
3,
4,
4,
4,
0,
'3 (3ct Ost)', 0.800);
'2009-2017',
7,
5,
A,
1,
'1 (1ct Øst)', 0.800);
' 2007-2015',
8,
5,
4,
3,
0,
0,
'0',
0.000);
'2012-2012',
1,
1,
0,
Transcribed Image Text:CREATE TABLE wicketkeeping ( Player CHAR(25), CarrerSpan VARCHAR(20), Matches INT, Innings INT, Dismissals INT, Catches INT, Stumpings INT, MaxiumDismissalsInOneInning CHAR(15), DismissalsPerInnings NUMERIC INSERT INTO wicketkeeping JALUES('Q de Kock', INSERT INTO wicketkeeping VALUES('AB de villiers', '2006-2017', INSERT INTO wicketKeeping VALUES('MV Boucher', INSERT INTO wicketKeeping VALUES('M Mosehle', INSERT INTO wicketKeeping JALUES('H Klaasen', INSERT INTO wicketkeeping JALUES ('HG Kuhn', INSERT INTO WwicketKeeping VALUES('MN van Wyk', INSERT INTO wicketKeeping JALUES ('DJ Vilas', 30, 9, '4 (3ct 1st)', 1.218); '2012-2018', 32, 32, 39, 7, '4 (4ct Øst)', 1.076); 78, 26, 28, 21, 19, 18, 1, '3 (3ct Ost)', 0.760); '2005- 2010', 25, 25, 6, 2, '3 (2ct 1st)', 1.142); '2017-2017', 7, 7, 8, 0, '2 (2ct Ost)', 1.333); '2018-2018', 4, 3, 4, 4, 4, 0, '3 (3ct Ost)', 0.800); '2009-2017', 7, 5, A, 1, '1 (1ct Øst)', 0.800); ' 2007-2015', 8, 5, 4, 3, 0, 0, '0', 0.000); '2012-2012', 1, 1, 0,
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning