Portfolio of my SQL projects

Download Sql Code for List Stats by Day/Week/Overall
Download Sql Code for Sale details in List stats report
Download SQL code for Sales Products
Download SQL code for Call Details
This enabled us to only assign some leads for agents to call while keeping the other leads unassigned until needed. The task required a temporary table to hold a subset of leads to prevent needing to define the leads subset multiple times throughout the query. I used AI to help determine how to randomly match each item in the subset of leads to a random agent and then looped through the lead list subset so that each agent was assigned around the same number of leads.
