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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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