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:...



SQL Help


A college football association has a database to record various data about their teams, players<br>and affiliated university.<br>The following relational model presents the relationship between the tables:<br>Team<br>TeamID<br>TeamName<br>City<br>State<br>Win<br>Los<br>Player<br>PlayerlD<br>PlayerName<br>Age<br>Position<br>TeamID<br>CollegelD<br>College<br>CollegelD<br>CollegeName<br>City<br>State<br>We have the following information about the attributes:<br>Team:<br>- TeamID is an integer and is the Primary Key of the Team table<br>- TeamName is a chain of no more than 30 characters<br>- City is a chain of no more than 25 characters<br>- State is a chain of 2 characters<br>- Win is an integer<br>- Loss is an integer<br>Player:<br>- PlayerlD is an integer and is the Primary Key of the Player table<br>- PlayerName is a chain of no more than 50 characters<br>- Age is an integer<br>- Position is a chain of no more than 15 characters<br>- TeamID is an integer and is a foreign key of the Player table<br>- CollegelD is an integer and is a foreign key of the Player table<br>College:<br>- CollegelD is an integer and is the Primary Key of the College table<br>- CollegeName is a chain of no more than 30 characters<br>- City is a chain of no more than 25 characters<br>- State is a chain of 2 characters<br>

Extracted 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 :<br>Теam<br>City<br>Los Angeles<br>TeamID<br>TeamName<br>State<br>Win<br>Loss<br>1001<br>Wildcats<br>CA<br>10<br>1002<br>Hawks<br>San Francisco<br>CA<br>8<br>5<br>1003<br>Renegades<br>San Jose<br>CA<br>4<br>1004<br>Gators<br>San Francisco<br>CA<br>10<br>Player<br>PlayerID<br>TeamID<br>CollegelD<br>PlayerName<br>Age<br>Position<br>101<br>1001<br>1080<br>Julio Peters<br>23<br>WR<br>102<br>1003<br>1080<br>Lance Randolph<br>29<br>QB<br>Timothy Haas<br>Joey Daniel<br>103<br>1003<br>2001<br>27<br>ТЕ<br>115<br>1002<br>1478<br>32<br>LB<br>106<br>1004<br>1479<br>Hobert Golden<br>25<br>FB<br>110<br>1001<br>1478<br>Hunter Padilla<br>21<br>QB<br>College<br>CollegelD<br>CollegeName<br>Example<br>University<br>Hogwart College<br>Stark College<br>Data University<br>City<br>State<br>1478<br>San Francisco<br>CA<br>1479<br>San Francisco<br>CA<br>1080<br>Los Angeles<br>CA<br>2001<br>Portland<br>OR<br>Using Subqueries, list the player name, age and position for all the player coming from<br>Example University (5 pts)<br>Your output should be :<br>PlayerName<br>Hunter Padila<br>Age<br>Position<br>21<br>QB<br>Joey Daniel<br>32<br>LB<br>

Extracted 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
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here