Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using 'tennis' database, which consists of tables: PLAYERS (PLAYERNO, NAME, INITIALS, BIRTH_DATE, SEX, JOINED, LEAGUENO) TEAMS (TEAMNO, PLAYERNO, DIVISION) MATCHES (MATCHNO, TEAMNO, PLAYERNO, WON, LOST)
using 'tennis' database, which consists of tables:
PLAYERS (PLAYERNO, NAME, INITIALS, BIRTH_DATE, SEX, JOINED, LEAGUENO)
TEAMS (TEAMNO, PLAYERNO, DIVISION)
MATCHES (MATCHNO, TEAMNO, PLAYERNO, WON, LOST)
and provide mySQL statements:
1) For ALL players, get the player number and a list of the numbers of teams for which they have ever played. Some players may not have played for teams in the database. Hint a JOIN of some kind is needed.
2) Get the number of each player who won at least one match. A win from matches is more wins than losses.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started