CREATE TABLE Fielding( Player CHAR(25), CareerSpan VARCHAR(20), Matches INT, Innings INT, Catches INT, MaxCatchesInOneInning INT, CatchesPerInning NUMERIC ); 0.846); 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', 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 78, 52, 44, 3, 36, 0.620); 58, 58, 3, '2010-2018', 2, 0.441); 77, 77, 34, '2007-2018', 18, 2, 0.545); '2005- 2011', 33, 33, 2, 0.500); 36, 36, 18, '2012-2017', 2, 0.439); '2009- 2018', 41, 41, 18, 2, 0.425); 40, 40, 17, '2006- 2012', 2, 0.340); 50, 50, 17, '2005- 2015', 2, 0.351); 37, 37, 13, '2012-2018', 1, 0.261); 42, 42, 11, '2007-2016', 10, 3, 0.714); 14, 14, '2008-2015', 2, 0.476); 21, 10, '2006- 2014', 21, 9, 3, 0.600); 15, 15, '2014-2016', 0.450); 20, 20, 9, '2013-2016', 3, 0.347); 23, 8, 23, '2005-2010', VALUES('HH Gibbs', 2,

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter9: Working With Text Functions And Creating Custom Formats
Section: Chapter Questions
Problem 1.7CP
icon
Related questions
Question

SQL CODE FOR 

  • For the players who show up in Batting, Bowling, and Fielding tables, create a list that shows their names, runs they have scored, wickets they have taken, and catches they have taken?

table is in picture

(bowling table is same as batting and fielding )

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 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 2 steps

Blurred answer
Knowledge Booster
Table
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