Tell me about how you would write a simple HackerRank SQL query and then make a reasonable guesstimate for burgers sold.
Using the provided burger sales data, write a query that totals burgers from completed orders. Then state a transparent, back-of-the-envelope estimate for a typical 30-day period based on the observed average daily completed sales.
total_burgers_sold.| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique identifier for the sales record |
| sale_date | DATE | Date of the recorded sale |
| burgers_sold | INT | Number of burgers in the sales record |
| order_status | VARCHAR(20) | Current status of the order |