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 Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 18RQ
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning