c. Assume the following sample of data : Тeam City Los Angeles San Francisco San Jose San Francisco TeamID TeamName State Win Loss Wildcats Hawks Renegades 1001 CA 10 3 1002 CA 8 1003 CA 9. 1004 Gators CA 3 10 Player PlayerlD CollegelD PlayerName Julio Peters Lance Randolph 29 Timothy Haas Joey Daniel Hobert Golden TeamID Age Position 101 1001 1080 23 WR 102 1003 1080 QB 103 1003 2001 27 ТЕ 115 1002 1478 32 LB 106 1004 1479 25 FB 110 1001 1478 Hunter Padilla 21 QB College CollegelD CollegeName Example University Hogwart College San Francisco Stark College Data University City San Francisco State 1478 CA 1479 CA 1080 Los Angeles CA 2001 Portland OR Using Subqueries, list the player name, age and position for all the player coming from Example University (5 pts) Your output should be: PlayerName Age Position Hunter Padila Joey Daniel 21 QB 32 LB

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

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
C. Assume the following sample of data :
Теam
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
10
Player
PlayerID
TeamID
CollegelD
PlayerName
Age
Position
101
1001
1080
Julio Peters
23
WR
102
1003
1080
Lance Randolph
29
QB
Timothy Haas
Joey Daniel
103
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
Example
University
Hogwart College
Stark College
Data University
City
State
1478
San Francisco
CA
1479
San Francisco
CA
1080
Los Angeles
CA
2001
Portland
OR
Using Subqueries, list the player name, age and position for all the player coming from
Example University (5 pts)
Your output should be :
PlayerName
Hunter Padila
Age
Position
21
QB
Joey Daniel
32
LB
Transcribed Image Text:C. Assume the following sample of data : Теam 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 10 Player PlayerID TeamID CollegelD PlayerName Age Position 101 1001 1080 Julio Peters 23 WR 102 1003 1080 Lance Randolph 29 QB Timothy Haas Joey Daniel 103 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 Example University Hogwart College Stark College Data University City State 1478 San Francisco CA 1479 San Francisco CA 1080 Los Angeles CA 2001 Portland OR Using Subqueries, list the player name, age and position for all the player coming from Example University (5 pts) Your output should be : PlayerName Hunter Padila Age Position 21 QB Joey Daniel 32 LB
Expert Solution
trending now

Trending now

This is a popular 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