Write the SQL Code for Select the names of wicketkeeper along with the number of sixes that they have hit (while batting) ?
Write the SQL Code for Select the names of wicketkeeper along with the number of sixes that they have hit (while batting) ?
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Write the SQL Code for
Select the names of wicketkeeper along with the number of sixes that they have hit (while batting) ?
table is in the pic
![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,](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9d0c3ede-059e-469b-a7ed-bf65dc139d24%2Fcbd69464-648b-4d1b-afe7-2efcb803868f%2Fp3pnudi_processed.png&w=3840&q=75)
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,
![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);](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9d0c3ede-059e-469b-a7ed-bf65dc139d24%2Fcbd69464-648b-4d1b-afe7-2efcb803868f%2Fasle5th_processed.png&w=3840&q=75)
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);
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education