Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pls help me with these SQL questions Here are tables TEAM table Task 10 (4 marks) Write an SQL statement to display fan categories, the

pls help me with these SQL questions
image text in transcribed
image text in transcribed
Here are tables
image text in transcribed
image text in transcribed
TEAM table
image text in transcribed
image text in transcribed
Task 10 (4 marks) Write an SQL statement to display fan categories, the number of tickets in each category the fan bought (change the alias to "NUMBER OF TICKETS PURCHASED") along with the sum of prices (change the alias to TOTAL PRICES') in each category the fans paid. Sort the result by total price in an ascending order. Task 11 (5 marks) Write an SQL statement to display match ID and the count of tickets sold for each match ONLY if the number of tickets sold of this match is more than 1 and the open year of the stadium on which the match will be played is not 2013. Task 12 (5 marks) Write an SQL statement to display the stadium name and the number of matches played in each stadium (change the alias to "NUMBER OF MATCHES"). Display only the top two stadiums where most matches were held. Sort the result by the number of matches played on each stadium in a descending order. NOTE: Do Not use a static (fixed) value to determine the largest number of matches] Task 13 (5 marks) Write an SQL statement to display team name and its manager if Croatia is one of the teams in any match (either as a first or a second team). Manager's name should be displayed as initialisation of first name followed by a dot and then the last name. The alias of the manager column should be changed to "Manager Initials". For example, if manager's name is David Smith, it will be displayed as D. Smith

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

Question How are IRAs treated for state tax law purposes?

Answered: 1 week ago