University | National University of Singapore (NUS) |
Subject | Database |
Database Assignment, NUS, Singapore A construction company works with a database that stores information about contractors, materials, and sites
Question 1:
A construction company works with a database that stores information about contractors, materials, and sites. The Consignment relation records instances of a contractor delivering materials for a construction site.
Question 2
Provide SQL queries and the result tables for the following:
- Find the details of any works of art along with the full name of the Artist who created the work that have at least two copies recorded in the database.
- List the details of any work of art that has an Expressionist style.
- List the details of the works of art currently held in the gallery.
- List the sales for each customer made in the year 2007. The query should include the details of the customer, the transaction, and the work of art purchased.
- 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).
- 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).
- Calculate the profit made on works of art that have been sold in the year 2010.
- Which artist has had the most works of art sold, and how many of the artist’s works have been sold?
- Sales of which artist’s works have resulted in the highest average profit (e., the average of the profits made on each sale of works by an artist), and what is that amount?
- Customer name of any customers who have an interest in ALL artists.
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Seeking Expert Online Assignment Writing Help for NUS? Look No Further! - MY Assignment Help SG offers top-notch academic assistance tailored specifically for students at the National University of Singapore. Our experienced writers provide impeccable assignments that meet the university's standards, ensuring your success. Trust us with your assignments and enjoy stress-free academics today!
- Imagine that you are currently working for a precision medicine startup: Machine Learning Paper Review in Precision Medicine, Written Assignment 1, NUS, Singapore
- Go Business offers PSG solutions for enterprises in Singapore: Collective Intelligence and Entrepreneurship, Assignment 1, JCU, Singapore
- Design an ontology based on- Accidents can be categorised as chemical, electrical, fire, kinetic or liquid: Collective Intelligence and Entrepreneurship, Assignment 1, JCU, Singapore
- Project Control Monitoring, Assignment, HU, Singapore: Deliberate Project MONITORING AND CONTROL or PMC Identification
- DSM500: Final Project Report, Coursework 2, UOL, Singapore
- DSM080: Financial Markets, Assignment, UOL, Singapore: A grapefruit juice futures contract is for 15,000 pounds of frozen grapefruit juice
- DSM080: Financial Markets, Assignment, UOL, Singapore: The share price of a certain stock today is $42.50, and five-month European style call options with a strike price of $45 currently sell for $4.25.
- DSM080: Financial Markets, Assignment, UOL, Singapore: A trader who is working in the gold markets is able to borrow money at the interest rate of 7% per annum
- DSM080 Financial Markets, Assignment, UOL, Singapore: A dollar-based American corporation has decided that it will have to pay 6 million UK pounds in three months
- Principle of Finance Assignment, UCD, Singapore: National Gaming Inc. (National) operates the weekly lottery in the country
UP TO 15 % DISCOUNT