List the details of any works of art

Assignment Help Basic Computer Science
Reference no: EM133269390

Provide SQL queries and the result tables for the following:

Please ensure that you include the result table as well as your SQL; you can copy and paste this from either your ssh client or SQL Developer. Each query is worth 2 marks. These tables exist in Rhea and are owned by the user dtoohey. You may, if you wish, create your own copies of the tables under your own account. If you do so, you should ensure that you copy the sample data in dtoohey's tables.

These queries are based on the View Ridge Gallery database you have been using in the Lab sessions. Please see Chapters 6 and 7 of Kroenke for background to the case and table structures.

Marks are allocated not only for correct answers, but also for best practice in the creation of the queries.

  1. List the details of any works of art (including the Artist who created the work) that have more than three copies recorded in the database (i.e., a work that is listed in the database three times).
  2. List the details of any work of art (including the Artist who created the work) that has a Surrealist style.
  3. List the details of the works of art (including the Artist who created the work, and the acquisition and asking price details) currently held in the gallery (i.e., works of art that have not been sold).
  4. List the sales for each customer (i.e., when a customer purchases a work of art from the Gallery, a transaction line is created. For a purchase, there will be values in the DateSold and SalesPrice columns). The query should include the details of the customer, the transaction and the work of art purchased.
  5. List the names of the deceased artists and the number of years of age they were when they died (for example, an artist born in 1950 and deceased in 2001 has an age of 51).
  6. The sum of the acquisition price of works of art for each year (for example, if there were two works of art purchased for $1500 and $1000  in 2019, and one work of art purchased for $500 in 2020, then the sums would be $2500 and $500, for 2019 and 2020 respectively).
  7. Calculate the profit made on works of art that have been sold (i.e., the profit/loss on an  individual work of art is the difference between the acquisition price and the sales price).
  8. Which artist has had the most works of art sold, and how many of the artist's works have been sold?
  9. Sales of which artist's works have resulted in the highest average profit (i.e., the average of the profits made on each sale of works by an artist), and what is that amount?
  10. Customer name of any customers who have an interest in ALL artists.

Reference no: EM133269390

Questions Cloud

Define the purpose of the conceptual framework : Define the purpose of the Conceptual Framework issued by the International Standards Board for Financial Reporting
How united states constitution separation of power functions : In this discussion, your assignment is to explain how the United States Constitution's separation of powers functions within our government.
Understanding of critical and creative thinking : The current level of knowledge and understanding of critical and creative thinking Knowledge gaps related to critical and creative
What is the minimum withdrawal that mr wormald must make : The corresponding figure on January 1, 2020 is $580000. What is the minimum withdrawal that Mr. Wormald must make from the RRIF during 2020
List the details of any works of art : Please ensure that you include the result table as well as your SQL; you can copy and paste this from either your ssh client or SQL Developer. Each query is wor
Discuss the emergent strategic approach process : Discuss the Emergent strategic approach process that retail organisations can utilise during COVID
Explaining the literal and figurative grade : Explaining the literal and figurative graden and chapel on the poem the garden of love by William Blake.
Create in python the parent class : Create in Python the parent class (superclass) and subclasses to represent the problem given in Figure 1 below. Ensure that common attributes are moved to the p
Demonstrate her larger goal or purpose in writing book : How does her description, through your analysis, demonstrate her larger goal or purpose in writing the book?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Cloud solution and digital transformation project

NTC 260-A Project Manager was assigned to begin managing your project of the adoption of a cloud solution and digital transformation project.

  Channel junction field effect transistor

Sketch and explain the basic structure of an N-channel junction field effect transistor.

  How important is price uncertainty vs whether prices

How important is price uncertainty vs. whether prices are expected to simply increase or decrease in the oil industry

  Importance of ob as a field of study

Answer each question separately. Be sure to number your answers so your instructor knows which question you are answering. Define organizational behavior (OB) and discuss the importance of OB as a field of study (Chapter 1).

  Emphasis on electronically stored information

What likely effect will its emphasis on electronically stored information (ESI) have on an organization's need for a digital forensic capability?

  Case study about target getting breached

Case study about Target getting breached. Find a recent example of another company that has experienced access, privacy, or security issues with their WLAN.

  Configuring desktop and system security

Essentially, it is a document that serves as a guide to configuring a desktop / system security.

  What are some similarities between the monetary base

What are some similarities between the Monetary base and the Monetary supply?

  Automation of common events

If you were interested in data analysis, calculations, chart management, data management, and automation of common events.

  Create an amusement park scene with a carousel

Create an amusement park scene with a carousel (Amusement Park).

  What is the loop control variable

What is the output if the code is changed to while(++numTimes

  Class encapsulating a singly linked list of website objects

PROGRAM 1Code a class encapsulating a singly linked list of website objects. A website has two attributes: a URL address (a String, you do not need to use the existing URL Java class) and 10 or fewer keywords describeing the topic of the website

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