Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+5 How does HRM relate to efforts to increase innovation?

Answered: 1 week ago