C. Assume the following sample of data : Тeam TeamID 1001 | 1002 1003 | 1004 City Win TeamName Wildcats Hawks Renegades Gators State Loss Los Angeles CA 10 San Francisco San Jose San Francisco CA CA 4 CA 3. 10 Player PlayerID 101 CollegelD PlayerName Julio Peters Lance Randolph 29 Timothy Haas Joey Daniel Hobert Golden Hunter Padilla TeamID Age Position 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 21 QB College CollegeName Gator University San Francisco Hogwart College San Francisco Stark College Data University CollegelD 1478 City State CA 1479 CA Los Angeles Portland 1080 CA 2001 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 Hawks

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 :
Те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
Transcribed Image 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
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
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 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