Find in the payments table the customer_id of customers who have spent (amount) at least $110 with the staff_id who has an ID of 2. You will need to aggregate amount spent.

🎲 Try a Random Question  |  Total Questions in Quiz: 189  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
SQL Basics with SQLite and PostgreSQL (Questions) — practice the complete quiz, review flashcards, or try a random question.

SQLite is an Embedded DBMS. This means that it is a Serverless DBMS with the ability to run within your applications.

PostgreSQL DBMS implements a Client-Server Model and requires a Database Server to set up and run over a network.

SQLite vs PostgreSQL: SQLite is very fast, thanks to its minimal design and simple operations. SQLite is for you if all you require is fast read operations. PostgreSQL is more suitable for complex operations.


1. Find in the payments table the customer_id of customers who have spent (amount) at least $110 with the staff_id who has an ID of 2. You will need to aggregate amount spent.