Skip to content

Instantly share code, notes, and snippets.

View farhaduneci's full-sized avatar
📚
Learning

Farhad Uneci farhaduneci

📚
Learning
View GitHub Profile
@farhaduneci
farhaduneci / Answers.sql
Created September 1, 2022 06:20
8 Week SQL Challenge, Case Study #1, Danny's Diner
-- Case Study #1 - Danny's Diner
-- https://8weeksqlchallenge.com/case-study-1/
-- Solved on SQLite 3.39 by Farhad Uneci, August 2022
-- 1. What is the total amount each customer spent at the restaurant?
SELECT
customer_id AS 'Customer',
SUM(price) AS 'Paid'
FROM
sales