How denistanjingyu/stratascratch works
This repository is a catalog of standalone StrataScratch SQL challenge solutions, not an application with a shared runtime workflow. Each query addresses its own prompt; the tree and README do not document calls, data transfers, or a common execution entry point. The groups below organize the solutions by subject. SQL contents were not provided, so relationships between queries and their database dependencies cannot be established.
Components 34
Business & commerce
- Customer details
Customer Details.sql - Customer revenue
Customer Revenue In March.sql - Churros activity
Find the activity date of churros when they had less than 95 points.sql - Global profitable company
Find the most profitable company in the financial sector of the entire world along with its continent.sql - Ticket processing rates
Find the rate of processed tickets for each type.sql - Profitable companies
Find the three most profitable companies.sql - Highest-cost orders
Highest Cost Orders.sql
People & work
- Average salaries
Average Salaries.sql - Employee salaries
Employee and Manager Salaries.sql - Hack popularity
Find the average popularity of the Hack per office location.sql - Police captain pay
Find the base pay for Police Captains.sql - Department salary leader
Highest Salary In Department.sql - Manager targets
Highest Target Under Manager.sql - Income by title and gender
Income By Title and Gender.sql
Places & services
- Classify businesses
Classify each business as either a restaurant, cafe, taqueria, kitchen, garden, school, or other.sql - Inspection violations
Count the number of inspections with violations that happened to 'Roxanne Cafe' in each year.sql - Wine aromas
Find all wineries which produce wines by possessing aromas of plum, cherry, rose, or hazelnut.sql - Hotel reviews
Find hotels with the highest number of reviews.sql - Library notices
Find libraries who haven't provided the email address in 2016 but their notice preference definition is set to email.sql - Host guest matches
Find matching hosts and guests in a way that they are both of the same gender and nationality.sql - Young owners' apartments
Find the number of apartments per nationality that are owned by people under 30 years old.sql - Top-reviewed businesses
Find the top 5 businesses with most reviews.sql - Host rental prices
Host Popularity Rental Prices.sql
Media & activity
- Oscar-nominated movies
Count the number of movies that Abigail Breslin nominated for oscar.sql - User events
Count the number of user events performed by MacBookPro users.sql - Heart reactions
Find all posts which were reacted to with a heart.sql - Spotify artists
Find artists that have been on Spotify the most number of times.sql - Top-position songs
Find songs that have placed in the top position the most number of times.sql - Maximum cool votes
Find the highest number of 'cool' votes a review received.sql - 2010 ranked songs
Find the top 10 ranked songs in 2010.sql
Other analysis
- Acceptance rates
Acceptance Rate By Date.sql - Count text instances
Counting Instances in Text.sql - Updated records
Finding Updated Records.sql - Energy consumption
Highest Energy Consumption.sql