This project presents an analysis of the Iowa Liquor Sales dataset using PostgreSQL, providing insights into sales trends, top-selling products, vendors, and regional performance. The goal of this project is to identify key business drivers and growth opportunities based on the data.
The dataset is publicly available on BigQuery and covers the period from January 2012 to August 2024. It includes detailed transaction-level information on liquor sales across Iowa, including store details, product categories, vendors, and sales amounts.
You can access the dataset here: Iowa Liquor Sales Dataset.
- invoice_and_item_number: A unique identifier for the individual liquor products included in the store order
- date : Date of order
- store_number : Unique number assigned to the store who ordered the liquor
- store_name : Name of store who ordered the liquor
- address : Address of store who ordered the liquor
- city : City where the store who ordered the liquor is located
- zip_code : Zip code where the store who ordered the liquor is located
- store_location : Location of store who ordered the liquor. The Address, City, State and Zip Code are geocoded to provide geographic coordinates. Accuracy of geocoding is dependent on how well the address is interpreted and the completeness of the reference data used.
- county_number : Iowa county number for the county where store who ordered the liquor is located
- county : County where the store who ordered the liquor is located
- category : Category code associated with the liquor ordered
- category_name : Category of the liquor ordered
- vendor_number : The vendor number of the company for the brand of liquor ordered
- vendor_name : The vendor name of the company for the brand of liquor ordered
- item_number : Item number for the individual liquor product ordered
- item_description : Description of the individual liquor product ordered
- pack : The number of bottles in a case for the liquor ordered
- bottle_volume_ml : Volume of each liquor bottle ordered in milliliters
- state_bottle_cost : The amount that Alcoholic Beverages Division paid for each bottle of liquor ordered
- state_bottle_retail : The amount the store paid for each bottle of liquor ordered
- bottles_sold : The number of bottles of liquor ordered by the store
- sale_dollars : Total cost of liquor order (number of bottles multiplied by the state bottle retail)
- volume_sold_liters : Total volume of liquor ordered in liters. (i.e. (Bottle Volume (ml) x Bottles Sold)/1,000)
- volume_sold_gallons : Total volume of liquor ordered in gallons. (i.e. (Bottle Volume (ml) x Bottles Sold)/3785.411784)
- LICENSE: Project's license.
- README.md: Project overview and guide.
- countNullUnique.sql: Counts null and unique values in the dataset.
- createSalesTable.sql: Creates database tables and loads data.
- iowa.csv: Raw dataset file.
- overallAnalysis.sql: SQL scripts for detailed analysis.
This project uses SQL queries to analyze the dataset from multiple perspectives, such as product performance, regional trends, and growth analysis.
- Objective: Identify the top-performing liquor categories, suppliers, retailers, cities, and counties based on total sales revenue.
- Value: These analyses help pinpoint the most successful products and regions, enabling strategic business decisions on product stocking and market focus.
- Objective: Examine sales trends over time (both yearly and monthly).
- Value: Businesses can use this analysis to plan inventory, marketing campaigns, and promotions, optimizing them for peak seasons and identifying growth opportunities.
- Objective: Calculate year-over-year sales growth to identify high-growth periods.
- Objective: Break down yearly sales by product categories to track the demand for different types of liquor over time.
- Value: Helps in understanding which categories are growing in popularity and which are declining.
- Objective: Analyze annual sales at the city and county levels to identify regional trends.
- Value: Provides insights into which regions are consistently driving higher sales, enabling targeted regional marketing and inventory planning.
- Objective: Identify liquor categories that have been sold every year for the 13-year period in the dataset.
- Value: Shows which products have sustained demand, indicating reliable categories that businesses can prioritize in long-term planning.