Select players who have previously played for manchester

Assignment Help Database Management System
Reference no: EM131680342

Professor. Dunn
10/4/17
Queries:
1. Select all players whose player number is 10 :
SELECT tblPlayers.PlayerName, tblPlayers.PlayerPositionID, tblPlayers.TeamID, tblPlayers.ContryID
FROM tblPlayers
WHERE (((tblPlayers.PlayerPositionID)=2002));

2. All players who play striking position:

SELECT tblPlayers.PlayerName, tblPlayers.PlayerPositionID, tblPlayers.TeamID, tblPlayers.ContryID
FROM tblPlayers
WHERE (((tblPlayers.PlayerPositionID)=2002));

3. All players who play defending position:
SELECT tblPlayers.PlayerName, tblPlayers.PlayerPositionID, tblPlayers.Weight
FROM tblPlayers
WHERE (((tblPlayers.PlayerPositionID)=1001));

4. Select players who have previously played for Manchester:

SELECT tblPlayers.PlayerName, tblPlayerHistory.PreviousTeams, tblPosition.PlayerPosition
FROM tblPosition INNER JOIN (tblPlayers INNER JOIN tblPlayerHistory ON tblPlayers.PlayerID = tblPlayerHistory.PlayerID) ON tblPosition.PlayerPositionID = tblPlayers.PlayerPositionID
WHERE (((tblPlayerHistory.PreviousTeams)="ManchesterUnited"));

5. Select all players who weigh below 80 kg:
SELECT tblPlayers.PlayerName, tblPosition.PlayerPosition, tblPlayerMarketValue.MarketValueAssessedID, tblPlayers.Weight
FROM (tblPosition INNER JOIN tblPlayers ON tblPosition.PlayerPositionID = tblPlayers.PlayerPositionID) INNER JOIN tblPlayerMarketValue ON tblPlayers.PlayerID = tblPlayerMarketValue.PlayerID
WHERE (((tblPlayers.Weight)<80));
6. Select all matches that took place before 9/30/2017:

SELECT tblMatches.MatchDate, tblTeams.TeamName, tblTeams_1.TeamName
FROM tblTeams_1 INNER JOIN (tblTeams INNER JOIN tblMatches ON tblTeams.TeamID = tblMatches.HomeTeamID) ON tblTeams_1.TeamID = tblMatches.VisitingTeamID
WHERE (((tblMatches.MatchDate)<#9/30/2017#));

7. Select all players from brazil:

SELECT tblPlayers.PlayerName, tblPlayers.DateOfBirth, tblCountry.CountryName, tblTeams.TeamName
FROM (tblCountry INNER JOIN tblPlayers ON tblCountry.CountryID = tblPlayers.ContryID) INNER JOIN tblTeams ON tblPlayers.TeamID = tblTeams.TeamID
WHERE (((tblCountry.CountryName)="Brazil"));

8. Players whose market value is greater than $700000:

SELECT tblPlayers.PlayerName, tblPlayers.DateOfBirth, tblMarketValue.MarketValue, tblTeams.TeamName, tblCountry.CountryName
FROM tblCountry INNER JOIN ((tblPlayers INNER JOIN (tblMarketValue INNER JOIN tblPlayerMarketValue ON tblMarketValue.MarketValueID = tblPlayerMarketValue.MarketValueID) ON tblPlayers.PlayerID = tblPlayerMarketValue.PlayerID) INNER JOIN tblTeams ON tblPlayers.TeamID = tblTeams.TeamID) ON tblCountry.CountryID = tblPlayers.ContryID
WHERE (((tblMarketValue.MarketValue)>700000));

9. Select all players from spain:

SELECT tblPlayers.PlayerName, tblPosition.PlayerPosition, tblPlayers.Weight, tblCountry.CountryName
FROM tblCountry INNER JOIN ((tblTeams INNER JOIN tblMatches ON tblTeams.TeamID = tblMatches.HomeTeamID) INNER JOIN (tblPosition INNER JOIN tblPlayers ON tblPosition.PlayerPositionID = tblPlayers.PlayerPositionID) ON tblTeams.TeamID = tblPlayers.TeamID) ON tblCountry.CountryID = tblPlayers.ContryID
WHERE (((tblPlayers.ContryID)=8));

10. Select all players whose player number is 3:
SELECT tblPlayers.PlayerName, tblPlayers.PlayerNumber, tblPlayers.PlayerID
FROM tblPlayers
WHERE (((tblPlayers.PlayerNumber)=3));

Attachment:- datdabse.rar

Reference no: EM131680342

Questions Cloud

Explain the law of total probability : The book Red State, Blue State, Rich State, Poor State by Andrew Gelman [13] discusses the following election phenomenon: within any U.S. state, a wealthy voter
Analyze wireless applications : Analyze wireless applications and the degree of support and adoption of wireless devices for each industry.
What basis will ABC Corporation have in land : City of Los Angeles donates land to ABC Corporation as an inducement for ABC to locate there. What basis will ABC Corporation have in land
Explain the concepts of intrinsic and instrumental values : Explain concepts of intrinsic and instrumental values, and provide examples that illustrate how each set of values is crucial to ensure ethical law enforcement.
Select players who have previously played for manchester : Select all players whose player number is 10.Select players who have previously played for Manchester:
What happens if one part does not function : For example, what happens to digestion if the person is missing many teeth but can't afford dentures or perhaps has a digestive disorder?
Calculate the total amount of a cash dividend : Calculate the dollar amount that will be presented opposite of this caption. Calculate the total amount of a cash dividend of $1.00 per share
What is the probability of winning the first game : You are going to play 2 games of chess with an opponent whom you have never played against before (for the sake of this problem).
Calculate the overhead rate using the traditional approach : Elle Inc. has two types of handbags: standard and custom. Calculate the overhead rate using the traditional (plant-wide) approach

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd