To show the name of the fielders who have played 7 times as many matches as the wicketkeeper(s)

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter8: Working With Trendlines, Pivottables, Pivotcharts, And Slicers
Section: Chapter Questions
Problem 8EYW
icon
Related questions
Question

SQL Code for 

Extend the code in (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 ) To show the name of the fielders who have played 7 times as many matches as the wicketkeeper(s) in 5).

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,
CREATE TABLE Fielding(
Player CHAR(25),
CareerSpan VARCHAR(20),
Matches INT,
Innings INT,
Catches INT,
MaxCatchesInoneInning INT,
CatchesPerInning NUMERIC
);
3,
0.846);
44,
INSERT INTO Fielding
VALUES ('AB de villiers', '2006-2017',
INSERT INTO Fielding
VALUES ('DA Miller',
INSERT INTO Fielding
VALUES ('JP Duminy',
INSERT INTO Fielding
VALUES ('GC Smith',
INSERT INTO Fielding
VALUES ('F du Plessis', ' 2012-2017',
INSERT INTO Fielding
VALUES('HM Amla',
INSERT INTO Fielding
VALUES ('J Botha',
INSERT INTO Fielding
VALUES ('JA Morkel',
INSERT INTO Fielding
VALUES('F Behardien',
INSERT INTO Fielding
VALUES ('DW Steyn',
INSERT INTO Fielding
VALUES ('JL Ontong',
INSERT INTO Fielding
VALUES('RJ Peterson',
INSERT INTO Fielding
VALUES ('RR Rossouw',
INSERT INTO Fielding
VALUES ('D wiese'
INSERT INTO Fielding
VALUES ('HH Gibbs',
78,
52,
3,
0.620);
58,
58,
36,
'2010-2018',
2,
0.441);
77,
17,
34,
'2007-2018',
2,
0.545);
33,
18,
33,
'2005- 2011',
2,
0.500);
36,
18,
36,
2,
0.439);
41,
18,
41,
'2009-2018',
2,
0.425);
40,
40,
17,
'2006-2012',
2,
0.340);
50,
17,
50,
'2005- 2015',
2,
0.351);
37,
13,
37,
'2012-2018',
1,
0.261);
42,
11,
42,
'2007-2016',
3,
0.714);
14,
14,
10,
'2008-2015',
2,
0.476);
21,
10,
21,
'2006-2014',
3,
0.600);
15,
15,
9,
'2014-2016',
2,
0.450);
20,
9,
20,
'2013-2016',
0.347);
23,
23,
'2005- 2010',
Transcribed Image Text:CREATE TABLE Fielding( Player CHAR(25), CareerSpan VARCHAR(20), Matches INT, Innings INT, Catches INT, MaxCatchesInoneInning INT, CatchesPerInning NUMERIC ); 3, 0.846); 44, INSERT INTO Fielding VALUES ('AB de villiers', '2006-2017', INSERT INTO Fielding VALUES ('DA Miller', INSERT INTO Fielding VALUES ('JP Duminy', INSERT INTO Fielding VALUES ('GC Smith', INSERT INTO Fielding VALUES ('F du Plessis', ' 2012-2017', INSERT INTO Fielding VALUES('HM Amla', INSERT INTO Fielding VALUES ('J Botha', INSERT INTO Fielding VALUES ('JA Morkel', INSERT INTO Fielding VALUES('F Behardien', INSERT INTO Fielding VALUES ('DW Steyn', INSERT INTO Fielding VALUES ('JL Ontong', INSERT INTO Fielding VALUES('RJ Peterson', INSERT INTO Fielding VALUES ('RR Rossouw', INSERT INTO Fielding VALUES ('D wiese' INSERT INTO Fielding VALUES ('HH Gibbs', 78, 52, 3, 0.620); 58, 58, 36, '2010-2018', 2, 0.441); 77, 17, 34, '2007-2018', 2, 0.545); 33, 18, 33, '2005- 2011', 2, 0.500); 36, 18, 36, 2, 0.439); 41, 18, 41, '2009-2018', 2, 0.425); 40, 40, 17, '2006-2012', 2, 0.340); 50, 17, 50, '2005- 2015', 2, 0.351); 37, 13, 37, '2012-2018', 1, 0.261); 42, 11, 42, '2007-2016', 3, 0.714); 14, 14, 10, '2008-2015', 2, 0.476); 21, 10, 21, '2006-2014', 3, 0.600); 15, 15, 9, '2014-2016', 2, 0.450); 20, 9, 20, '2013-2016', 0.347); 23, 23, '2005- 2010',
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Intermediate SQL concepts
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
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