Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the code for this problem in SQL. DO NOT USE Cartesian Product (use a JOIN instead) TOP DATENAME() DATEPART()

Based on the Concert data model handout. The system contains the rental fee for each venue and the number of OFFERED PK,FK1 Con ID PK,FK2 Tick ID Of_Total Of_Sold Of Price Of Revenue  CONCERT PK Con ID Con Date 

I need the code for this problem in SQL. DO NOT USE 

•Cartesian Product (use a JOIN instead)
• TOP
• DATENAME()
• DATEPART()
• EXISTS
• NOT EXISTS
• CONVERT
• CAST
• COALESCE
• RETURN
• THROW
• TRY...CATCH
• Subquery in SELECT
• Subquery in HAVING
• Correlated subqueries of any kind

Based on the Concert data model handout. The system contains the rental fee for each venue and the number of seats (capacity) of each venue. The promoter wants to know how that converts to rental fee per seat for concerts that are not producing much revenue. Write a query to display the venue name and the per seat fee, where the per seat fee is the rental fee divided by the number of seats, for venues that have never had a concert that produced over $1,000,000 in revenue.

Step by Step Solution

3.30 Rating (147 Votes )

There are 3 Steps involved in it

Step: 1

Based on the instructions and the provided data model you can write an SQL query to solve the proble... 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

A Concise Introduction to Logic

Authors: Patrick J. Hurley, Lori Watson

13th edition

1305958098, 978-1305958098

More Books

Students also viewed these Databases questions

Question

Describe the goal of cognitive psychotherapy.

Answered: 1 week ago