C. Assume the following sample of data : Теam City Los Angeles TeamID TeamName State Win Loss 1001 Wildcats CA 10 3 1002 Hawks San Francisco CA 1003 Renegades San Jose CA 4 1004 Gators San Francisco...



SQL help


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>3<br>1002<br>Hawks<br>San Francisco<br>CA<br>1003<br>Renegades<br>San Jose<br>CA<br>4<br>1004<br>Gators<br>San Francisco<br>CA<br>3<br>10<br>Player<br>PlayerID<br>CollegelD<br>PlayerName<br>Julio Peters<br>TeamID<br>Age<br>Position<br>101<br>1001<br>1080<br>23<br>WR<br>102<br>1003<br>1080<br>Lance Randolph 29<br>QB<br>Timothy Haas<br>Joey Daniel<br>103<br>1003<br>2001<br>27<br>TE<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>Gator 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 the previous tables, write the SQL queries that perform the following actions.<br>Based on the data above, the output of each query is displayed below the question.<br>List the name of all the teams with more wins than losses<br>Your output should be :<br>TeamName<br>• Wildcats<br>Нawks<br>

Extracted text: C. Assume the following sample of data : Теam City Los Angeles TeamID TeamName State Win Loss 1001 Wildcats CA 10 3 1002 Hawks San Francisco CA 1003 Renegades San Jose CA 4 1004 Gators San Francisco CA 3 10 Player PlayerID CollegelD PlayerName Julio Peters TeamID Age Position 101 1001 1080 23 WR 102 1003 1080 Lance Randolph 29 QB Timothy Haas Joey Daniel 103 1003 2001 27 TE 115 1002 1478 32 LB 106 1004 1479 Hobert Golden 25 FB 110 1001 1478 Hunter Padilla 21 QB College CollegelD CollegeName Gator 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 the previous tables, write the SQL queries that perform the following actions. Based on the data above, the output of each query is displayed below the question. List the name of all the teams with more wins than losses Your output should be : TeamName • Wildcats Нawks
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
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here