List the player ID and player name of all the players older than 25 years old (included) and playing at a Quarterbacks (QB) position Your output should be :

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
icon
Related questions
Question

SQL Help

C. Assume the following sample of data :
Team
City
Los Angeles
TeamID
TeamName
State
Win
Loss
1001
Wildcats
CA
10
1002
Hawks
San Francisco
CA
8.
5
1003
Renegades
San Jose
CA
4
1004
Gators
San Francisco
CA
3
10
Player
PlayerID
TeamID
CollegelD
PlayerName
Age
Position
101
1001
1080
Julio Peters
23
WR
102
1003
1080
Lance Randolph
29
QB
103
TE
Timothy Haas
Joey Daniel
1003
2001
27
115
1002
1478
32
LB
106
1004
1479
Hobert Golden
25
FB
110
1001
1478
Hunter Padilla
21
QB
College
CollegelD
CollegeName
Gator University
City
State
1478
San Francisco
CA
Hogwart College
Stark College
Data University
1479
San Francisco
CA
1080
Los Angeles
CA
2001
Portland
OR
List the player ID and player name of all the players older than 25 years old (included) and
playing at a Quarterbacks (QB) position
Your output should be :
PlayerID
PlayerName
102
Lance Randolph
Transcribed Image Text:C. Assume the following sample of data : Team City Los Angeles TeamID TeamName State Win Loss 1001 Wildcats CA 10 1002 Hawks San Francisco CA 8. 5 1003 Renegades San Jose CA 4 1004 Gators San Francisco CA 3 10 Player PlayerID TeamID CollegelD PlayerName Age Position 101 1001 1080 Julio Peters 23 WR 102 1003 1080 Lance Randolph 29 QB 103 TE Timothy Haas Joey Daniel 1003 2001 27 115 1002 1478 32 LB 106 1004 1479 Hobert Golden 25 FB 110 1001 1478 Hunter Padilla 21 QB College CollegelD CollegeName Gator University City State 1478 San Francisco CA Hogwart College Stark College Data University 1479 San Francisco CA 1080 Los Angeles CA 2001 Portland OR List the player ID and player name of all the players older than 25 years old (included) and playing at a Quarterbacks (QB) position Your output should be : PlayerID PlayerName 102 Lance Randolph
A college football association has a database to record various data about their teams, players
and affiliated university.
The following relational model presents the relationship between the tables:
Team
TeamID
TeamName
City
State
Win
Los
Player
PlayerlD
PlayerName
Age
Position
TeamID
CollegelD
College
CollegelD
CollegeName
City
State
We have the following information about the attributes:
Team:
- TeamID is an integer and is the Primary Key of the Team table
- TeamName is a chain of no more than 30 characters
- City is a chain of no more than 25 characters
- State is a chain of 2 characters
- Win is an integer
- Loss is an integer
Player:
- PlayerlD is an integer and is the Primary Key of the Player table
- PlayerName is a chain of no more than 50 characters
- Age is an integer
- Position is a chain of no more than 15 characters
- TeamID is an integer and is a foreign key of the Player table
- CollegelD is an integer and is a foreign key of the Player table
College:
- CollegelD is an integer and is the Primary Key of the College table
- CollegeName is a chain of no more than 30 characters
- City is a chain of no more than 25 characters
- State is a chain of 2 characters
Transcribed Image Text:A college football association has a database to record various data about their teams, players and affiliated university. The following relational model presents the relationship between the tables: Team TeamID TeamName City State Win Los Player PlayerlD PlayerName Age Position TeamID CollegelD College CollegelD CollegeName City State We have the following information about the attributes: Team: - TeamID is an integer and is the Primary Key of the Team table - TeamName is a chain of no more than 30 characters - City is a chain of no more than 25 characters - State is a chain of 2 characters - Win is an integer - Loss is an integer Player: - PlayerlD is an integer and is the Primary Key of the Player table - PlayerName is a chain of no more than 50 characters - Age is an integer - Position is a chain of no more than 15 characters - TeamID is an integer and is a foreign key of the Player table - CollegelD is an integer and is a foreign key of the Player table College: - CollegelD is an integer and is the Primary Key of the College table - CollegeName is a chain of no more than 30 characters - City is a chain of no more than 25 characters - State is a chain of 2 characters
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.
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education