Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

Write sql code for

Use derived tables and joins to create a list of players who have scored more than 200 runs, taken more than 10 wickets, and taken more than two catches.

 

runs is form batting

wicketstaken from bowling 

catches is from fielding table (which is same as other tables0 

CREATE TABLE Bowling (
Player CHAR(25),
CareerSpan VARCHAR ( 20),
Matches INT,
Innings INT,
Overs INT,
Maidenovers INT,
RunsGiven INT,
wicketsTaken INT,
BestBowlingFigure VARCHAR (8),
Average NUMERIC,
Economy NUMERIC,
StrikeRate NUMERIC,
FoursGiven INT,
SixesGiven INT
);
INSERT INT0 Bowling
VALUES ('DW Steyn',
INSERT INT0 Bowling
VALUES ('Imran Tahir',
INSERT INTO Bowling
VALUES ('M Morkel'
INSERT INTO Bowling
VALUES ('WD Parnell',
INSERT INTO Bowling
VALUES ('J Botha',
INSERT INT0 Bowling
VALUES ('KJ Abbott',
INSERT INTO Bowling
VALUES ('JA Morkel',
INSERT INT0 Bowling
VALUES ('RJ Peterson',
INSERT INTO Bowling
VALUES ('D Wiese',
INSERT INT0 Bowling
VALUES ('K Rabada',
INSERT INTO Bowling
VALUES ('CH Morris',
INSERT INTO Bowling
VALUES ('JP Duminy',
'2007-2016',
42,
42,
150.1, 2,
1009,
58,
'4/9',
17.39,
6.71,
15.5,
2,
0);
'2013-2017',
33,
33,
122.5,
0,
815,
55,
'5/24', 14.81,
6.63,
13.4,
2,
1);
'2007-2017',
41,
41,
146.4,
3,
1097,
46,
'4/17', 23.84,
7.47,
19.1,
2,
0);
'2009-2017',
40,
39,
124.5,
3,
1038,
41,
'4/13', 25.31,
8.31,
18.2,
1,
0);
'2006- 2012 ',
40,
39,
129.0,
1,
823,
37,
'3/16', 22.24,
6.37,
20.9,
0,
0);
'2013-2016',
21,
21,
72.4,
0,
579,
26,
'3/20', 22.26,
7.96,
16.7,
0,
0);
'2005 - 2015',
50,
46,
107.5,
2,
864,
26,
'3/12', 33.23,
8.01,
24.8,
0,
0);
'2006-2014',
21,
19,
59.5,
1,
451,
24,
'3/28', 18.79,
7.53,
14.9,
0,
0);
'2013-2016 ',
20,
20,
65.2,
0,
497,
24,
'5/23', 20.70,
7.60,
16.3,
0,
1);
'2014-2018',
17,
17,
64.2,
0,
522,
24,
'3/30', 21.75,
8.11,
16.0,
0,
0);
'2012-2018',
17,
17,
63.0,
2,
529,
23,
'4/27', 23.00,
8.39,
16.4,
1,
0);
'2007-2018',
77,
40,
76.1,
0,
581,
21,
'3/18', 27.66, 7.62,
21.7,
0,
0);
expand button
Transcribed Image Text:CREATE TABLE Bowling ( Player CHAR(25), CareerSpan VARCHAR ( 20), Matches INT, Innings INT, Overs INT, Maidenovers INT, RunsGiven INT, wicketsTaken INT, BestBowlingFigure VARCHAR (8), Average NUMERIC, Economy NUMERIC, StrikeRate NUMERIC, FoursGiven INT, SixesGiven INT ); INSERT INT0 Bowling VALUES ('DW Steyn', INSERT INT0 Bowling VALUES ('Imran Tahir', INSERT INTO Bowling VALUES ('M Morkel' INSERT INTO Bowling VALUES ('WD Parnell', INSERT INTO Bowling VALUES ('J Botha', INSERT INT0 Bowling VALUES ('KJ Abbott', INSERT INTO Bowling VALUES ('JA Morkel', INSERT INT0 Bowling VALUES ('RJ Peterson', INSERT INTO Bowling VALUES ('D Wiese', INSERT INT0 Bowling VALUES ('K Rabada', INSERT INTO Bowling VALUES ('CH Morris', INSERT INTO Bowling VALUES ('JP Duminy', '2007-2016', 42, 42, 150.1, 2, 1009, 58, '4/9', 17.39, 6.71, 15.5, 2, 0); '2013-2017', 33, 33, 122.5, 0, 815, 55, '5/24', 14.81, 6.63, 13.4, 2, 1); '2007-2017', 41, 41, 146.4, 3, 1097, 46, '4/17', 23.84, 7.47, 19.1, 2, 0); '2009-2017', 40, 39, 124.5, 3, 1038, 41, '4/13', 25.31, 8.31, 18.2, 1, 0); '2006- 2012 ', 40, 39, 129.0, 1, 823, 37, '3/16', 22.24, 6.37, 20.9, 0, 0); '2013-2016', 21, 21, 72.4, 0, 579, 26, '3/20', 22.26, 7.96, 16.7, 0, 0); '2005 - 2015', 50, 46, 107.5, 2, 864, 26, '3/12', 33.23, 8.01, 24.8, 0, 0); '2006-2014', 21, 19, 59.5, 1, 451, 24, '3/28', 18.79, 7.53, 14.9, 0, 0); '2013-2016 ', 20, 20, 65.2, 0, 497, 24, '5/23', 20.70, 7.60, 16.3, 0, 1); '2014-2018', 17, 17, 64.2, 0, 522, 24, '3/30', 21.75, 8.11, 16.0, 0, 0); '2012-2018', 17, 17, 63.0, 2, 529, 23, '4/27', 23.00, 8.39, 16.4, 1, 0); '2007-2018', 77, 40, 76.1, 0, 581, 21, '3/18', 27.66, 7.62, 21.7, 0, 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);
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education