Welcome to the SQL Case Study on Famous Paintings repository! Here, we delve into intriguing insights from the Famous Paintings & Museum dataset.
The dataset comprises 8 tables:
- artist.csv 🎨
- canvas_size.csv 🖼️
- image_link.csv 🌐
- museum.csv 🏛️
- museum_hours.csv ⏰
- product_size.csv 📏
- subject.csv 📚
- work.csv 🛠️
- Fetch all the paintings which are not displayed in any museums?
- Are there museums without any paintings?
- How many paintings have an asking price of more than their regular price?
- Identify the paintings whose asking price is less than 50% of its regular price.
- Which canvas size costs the most?
- Delete duplicate records from work, product_size, subject, and image_link tables.
- Identify the museums with invalid city information in the given dataset.
- Museum_Hours table has 1 invalid entry. Identify it and remove it.
- Fetch the top 10 most famous painting subjects.
- Identify the museums which are open on both Sunday and Monday. Display museum name, city.
- How many museums are open every single day?
- Which are the top 5 most popular museums? (Popularity is defined based on most number of paintings in a museum)
- Who are the top 5 most popular artists? (Popularity is defined based on most number of paintings done by an artist)
- Display the 3 least popular canvas sizes.
- Which museum is open for the longest during a day? Display museum name, state, hours open and which day?
- Which museum has the most number of most popular painting style?
- Identify the artists whose paintings are displayed in multiple countries.
- Display the country and the city with the most number of museums. Output 2 separate columns to mention the city and country. If there are multiple values, separate them with a comma.
- Identify the artist and the museum where the most expensive and least expensive painting is placed. Display the artist name, sale_price, painting name, museum name, museum city, and canvas label.
- Which country has the 5th highest number of paintings?
- Which are the 3 most popular and 3 least popular painting styles?
- Which artist has the most number of Portraits paintings outside the USA? Display artist name, number of paintings, and the artist nationality.
- MySQL Database
Feel free to explore the queries, contribute, and share insights! 🌟