Case 2: activities and follow-ups
A customer database lives on its activities: who needs a call back today, and who has nobody talked to for a long time? Three queries answer that.
In short: due and open are criteria in one row (FollowUp <=#2026-11-30#, Done No). Max under the date returns the last activity. “No activity since June” is asked the other way round: all customers who are not in the list of customers with an activity from June.
Task 1: due follow-ups
Task Which follow-ups are due by 30 Nov 2026 and not done yet? Show Company, FollowUp and Notes, the oldest follow-up first.
Customers 24 rows, 9 columns
| CustomerID | Company | ContactName | PostalCode | City | Country | PaymentTerms | CustomerSince | |
|---|---|---|---|---|---|---|---|---|
| 1 | Bauer Plumbing Ltd | Henry Davies | 80202 | Denver | USA | henry.davies@example.com | 14 | 16 Sep 2020 |
| 2 | Northlight Publishing | James Walker | EC1A 1BB | London | UK | james.walker@example.com | 30 | 14 May 2024 |
| 3 | Shaw & Partners Accountants | Ava Brown | 02108 | Boston | USA | ava.brown@example.com | 30 | 13 Sep 2020 |
| 4 | Summit Consulting Inc | Grace Taylor | M1 1AE | Manchester | UK | grace.taylor@example.com | 30 | 23 Nov 2020 |
| 5 | City Utilities | Mia Evans | 02108 | Boston | USA | 30 | 25 Jun 2024 | |
| 6 | Market Street Clinic | Olivia Smith | EC1A 1BB | London | UK | olivia.smith@example.com | 30 | 14 Jun 2019 |
| 7 | Roth Legal LLP | Noah Davies | 80202 | Denver | USA | noah.davies@example.com | 14 | 25 Sep 2020 |
| 8 | Weber Logistics | Sophia Smith | 02108 | Boston | USA | sophia.smith@example.com | 30 | 22 Mar 2019 |
| 9 | Krause Bakery | Ava Taylor | 80202 | Denver | USA | ava.taylor@example.com | 30 | 10 Oct 2019 |
| 10 | Lindner Motors | Liam Smith | 80202 | Denver | USA | liam.smith@example.com | 30 | 30 Nov 2021 |
| 11 | Lakeview Hotel | Ava Wilson | G1 1XQ | Glasgow | UK | ava.wilson@example.com | 30 | 5 Sep 2020 |
| 12 | Hansen Printing | Olivia Johnson | EC1A 1BB | London | UK | olivia.johnson@example.com | 30 | 9 Jul 2021 |
| 13 | Fisher Electrical | Mia Clark | BS1 4DJ | Bristol | UK | 30 | 30 Aug 2023 | |
| 14 | Talbot Town Council | Ava Davies | LS1 1UR | Leeds | UK | ava.davies@example.com | 14 | 8 Jul 2022 |
| 15 | Sunshine Nursery | Grace Evans | BS1 4DJ | Bristol | UK | grace.evans@example.com | 30 | 8 Jul 2022 |
| 16 | Wolf Brewing Co | Liam Evans | M1 1AE | Manchester | UK | liam.evans@example.com | 30 | 1 Sep 2022 |
| 17 | Newman Opticians | Ava Evans | 02108 | Boston | USA | ava.evans@example.com | 14 | 10 May 2021 |
| 18 | Cook Dental Practice | Mia Taylor | 80202 | Denver | USA | mia.taylor@example.com | 14 | 1 Jun 2020 |
| 19 | Richter Realty | Lucas Walker | 02108 | Boston | USA | lucas.walker@example.com | 30 | 5 Mar 2024 |
| 20 | Bloom Garden Centre | Liam Clark | EC1A 1BB | London | UK | liam.clark@example.com | 14 | 10 Feb 2019 |
| 21 | Vogt Joinery | Emma Evans | LS1 1UR | Leeds | UK | 30 | 30 Jun 2024 | |
| 22 | Baker Dance School | Ava Evans | LS1 1UR | Leeds | UK | ava.evans@example.com | 30 | 24 Jun 2021 |
| 23 | Cathedral Pharmacy | Noah Walker | BS1 4DJ | Bristol | UK | noah.walker@example.com | 30 | 25 Mar 2023 |
| 24 | Meyer Physio | Lucas Taylor | LS1 1UR | Leeds | UK | lucas.taylor@example.com | 14 | 10 May 2022 |
Activities 70 rows, 7 columns
| ActivityID | CustomerID | ActivityDate | ActivityType | Notes | FollowUp | Done |
|---|---|---|---|---|---|---|
| 1 | 3 | 1 Feb 2025 | Call | Workshop date agreed | 2 Mar 2025 | ☑ |
| 2 | 2 | 2 Feb 2025 | Call | Workshop date agreed | ☐ | |
| 3 | 11 | 28 Feb 2025 | Call | Support case discussed | 18 Mar 2025 | ☑ |
| 4 | 7 | 7 Mar 2025 | Quote sent | ☐ | ||
| 5 | 16 | 12 Mar 2025 | Call | Workshop date agreed | 2 Apr 2025 | ☑ |
| 6 | 21 | 11 Apr 2025 | Call | Question about invoice | 12 May 2025 | ☐ |
| 7 | 10 | 12 Apr 2025 | Call | Workshop date agreed | ☐ | |
| 8 | 16 | 25 Apr 2025 | Documents sent | 19 May 2025 | ☑ | |
| 9 | 18 | 1 May 2025 | Meeting | Annual review | 30 May 2025 | ☑ |
| 10 | 14 | 3 May 2025 | Quote sent | ☐ | ||
| 11 | 24 | 5 May 2025 | Call | Interested in training | 2 Jun 2025 | ☑ |
| 12 | 6 | 5 May 2025 | Call | Interested in training | 25 May 2025 | ☑ |
| 13 | 19 | 24 May 2025 | Call | Support case discussed | ☐ | |
| 14 | 3 | 3 Jun 2025 | Call | Question about invoice | ☐ | |
| 15 | 20 | 21 Jun 2025 | Meeting | Workshop prepared | 16 Jul 2025 | ☑ |
| 16 | 18 | 23 Jul 2025 | Call | Support case discussed | ☐ | |
| 17 | 4 | 27 Jul 2025 | Feedback on quote | 16 Aug 2025 | ☑ | |
| 18 | 4 | 1 Aug 2025 | Call | Support case discussed | 28 Aug 2025 | ☑ |
| 19 | 23 | 1 Aug 2025 | Call | Question about invoice | 30 Aug 2025 | ☑ |
| 20 | 3 | 12 Aug 2025 | Call | Support case discussed | 4 Sep 2025 | ☑ |
| 21 | 21 | 10 Sep 2025 | Call | Question about invoice | ☐ | |
| 22 | 11 | 15 Sep 2025 | Meeting | Support plan presented | 23 Sep 2025 | ☑ |
| 23 | 10 | 18 Sep 2025 | Call | Support case discussed | 17 Oct 2025 | ☑ |
| 24 | 7 | 21 Oct 2025 | Call | Interested in training | ☐ | |
| 25 | 21 | 7 Nov 2025 | Quote sent | 21 Nov 2025 | ☑ | |
| 26 | 18 | 9 Nov 2025 | Meeting | Annual review | 27 Nov 2025 | ☑ |
| 27 | 2 | 12 Nov 2025 | Meeting | Annual review | ☐ | |
| 28 | 5 | 14 Nov 2025 | Call | Question about invoice | ☐ | |
| 29 | 3 | 13 Jan 2026 | Meeting | Workshop prepared | ☐ | |
| 30 | 13 | 13 Jan 2026 | Meeting | Annual review | 24 Jan 2026 | ☑ |
| 31 | 1 | 16 Jan 2026 | Feedback on quote | ☐ | ||
| 32 | 21 | 9 Feb 2026 | Quote sent | ☐ | ||
| 33 | 22 | 13 Feb 2026 | Call | Interested in training | 27 Feb 2026 | ☑ |
| 34 | 12 | 19 Feb 2026 | Meeting | Annual review | 4 Mar 2026 | ☑ |
| 35 | 6 | 20 Feb 2026 | Quote sent | 2 Mar 2026 | ☑ | |
| 36 | 16 | 28 Feb 2026 | Documents sent | ☐ | ||
| 37 | 2 | 7 Mar 2026 | Call | Question about invoice | ☐ | |
| 38 | 6 | 23 Mar 2026 | Meeting | Workshop prepared | 22 Apr 2026 | ☑ |
| 39 | 17 | 2 May 2026 | Meeting | Workshop prepared | 1 Jun 2026 | ☐ |
| 40 | 6 | 15 May 2026 | Call | Question about invoice | 7 Jun 2026 | ☐ |
| 41 | 17 | 17 May 2026 | Call | Workshop date agreed | 19 Jun 2026 | ☑ |
| 42 | 6 | 21 May 2026 | Quote sent | 9 Jun 2026 | ☑ | |
| 43 | 2 | 9 Jun 2026 | Meeting | Support plan presented | ☐ | |
| 44 | 22 | 20 Jun 2026 | Documents sent | 27 Jun 2026 | ☐ | |
| 45 | 2 | 28 Jun 2026 | Meeting | Workshop prepared | 15 Jul 2026 | ☑ |
| 46 | 3 | 29 Jun 2026 | Meeting | Support plan presented | 14 Jul 2026 | ☑ |
| 47 | 10 | 7 Jul 2026 | Meeting | Annual review | ☐ | |
| 48 | 16 | 8 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 49 | 12 | 14 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 50 | 22 | 21 Jul 2026 | Call | Interested in training | ☐ | |
| 51 | 16 | 21 Jul 2026 | Documents sent | ☐ | ||
| 52 | 7 | 27 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 53 | 18 | 2 Aug 2026 | Call | Workshop date agreed | 14 Aug 2026 | ☑ |
| 54 | 21 | 3 Aug 2026 | Call | Workshop date agreed | ☐ | |
| 55 | 14 | 14 Aug 2026 | Meeting | Annual review | ☐ | |
| 56 | 3 | 21 Aug 2026 | Call | Question about invoice | ☐ | |
| 57 | 21 | 30 Aug 2026 | Call | Support case discussed | ☐ | |
| 58 | 8 | 4 Sep 2026 | Call | Support case discussed | 9 Oct 2026 | ☑ |
| 59 | 6 | 10 Sep 2026 | Call | Workshop date agreed | 24 Sep 2026 | ☑ |
| 60 | 10 | 14 Sep 2026 | Call | Support case discussed | ☐ | |
| 61 | 3 | 14 Sep 2026 | Documents sent | 23 Sep 2026 | ☑ | |
| 62 | 21 | 19 Sep 2026 | Quote sent | ☐ | ||
| 63 | 24 | 29 Sep 2026 | Call | Interested in training | ☐ | |
| 64 | 21 | 5 Oct 2026 | Call | Workshop date agreed | ☐ | |
| 65 | 11 | 17 Oct 2026 | Feedback on quote | 24 Oct 2026 | ☐ | |
| 66 | 16 | 22 Oct 2026 | Call | Question about invoice | 26 Nov 2026 | ☐ |
| 67 | 20 | 13 Nov 2026 | Meeting | Workshop prepared | ☐ | |
| 68 | 3 | 22 Nov 2026 | Call | Interested in training | 3 Dec 2026 | ☐ |
| 69 | 2 | 24 Nov 2026 | Call | Question about invoice | ☐ | |
| 70 | 19 | 26 Nov 2026 | Quote sent | 15 Dec 2026 | ☐ |
You filter a Yes/No field with Yes or No. The lesson on And and Or covers criteria.
Task 2: last activity per customer
Task When was the last activity with each customer? Show Company and the date of the last activity, the longest ago first.
Customers 24 rows, 9 columns
| CustomerID | Company | ContactName | PostalCode | City | Country | PaymentTerms | CustomerSince | |
|---|---|---|---|---|---|---|---|---|
| 1 | Bauer Plumbing Ltd | Henry Davies | 80202 | Denver | USA | henry.davies@example.com | 14 | 16 Sep 2020 |
| 2 | Northlight Publishing | James Walker | EC1A 1BB | London | UK | james.walker@example.com | 30 | 14 May 2024 |
| 3 | Shaw & Partners Accountants | Ava Brown | 02108 | Boston | USA | ava.brown@example.com | 30 | 13 Sep 2020 |
| 4 | Summit Consulting Inc | Grace Taylor | M1 1AE | Manchester | UK | grace.taylor@example.com | 30 | 23 Nov 2020 |
| 5 | City Utilities | Mia Evans | 02108 | Boston | USA | 30 | 25 Jun 2024 | |
| 6 | Market Street Clinic | Olivia Smith | EC1A 1BB | London | UK | olivia.smith@example.com | 30 | 14 Jun 2019 |
| 7 | Roth Legal LLP | Noah Davies | 80202 | Denver | USA | noah.davies@example.com | 14 | 25 Sep 2020 |
| 8 | Weber Logistics | Sophia Smith | 02108 | Boston | USA | sophia.smith@example.com | 30 | 22 Mar 2019 |
| 9 | Krause Bakery | Ava Taylor | 80202 | Denver | USA | ava.taylor@example.com | 30 | 10 Oct 2019 |
| 10 | Lindner Motors | Liam Smith | 80202 | Denver | USA | liam.smith@example.com | 30 | 30 Nov 2021 |
| 11 | Lakeview Hotel | Ava Wilson | G1 1XQ | Glasgow | UK | ava.wilson@example.com | 30 | 5 Sep 2020 |
| 12 | Hansen Printing | Olivia Johnson | EC1A 1BB | London | UK | olivia.johnson@example.com | 30 | 9 Jul 2021 |
| 13 | Fisher Electrical | Mia Clark | BS1 4DJ | Bristol | UK | 30 | 30 Aug 2023 | |
| 14 | Talbot Town Council | Ava Davies | LS1 1UR | Leeds | UK | ava.davies@example.com | 14 | 8 Jul 2022 |
| 15 | Sunshine Nursery | Grace Evans | BS1 4DJ | Bristol | UK | grace.evans@example.com | 30 | 8 Jul 2022 |
| 16 | Wolf Brewing Co | Liam Evans | M1 1AE | Manchester | UK | liam.evans@example.com | 30 | 1 Sep 2022 |
| 17 | Newman Opticians | Ava Evans | 02108 | Boston | USA | ava.evans@example.com | 14 | 10 May 2021 |
| 18 | Cook Dental Practice | Mia Taylor | 80202 | Denver | USA | mia.taylor@example.com | 14 | 1 Jun 2020 |
| 19 | Richter Realty | Lucas Walker | 02108 | Boston | USA | lucas.walker@example.com | 30 | 5 Mar 2024 |
| 20 | Bloom Garden Centre | Liam Clark | EC1A 1BB | London | UK | liam.clark@example.com | 14 | 10 Feb 2019 |
| 21 | Vogt Joinery | Emma Evans | LS1 1UR | Leeds | UK | 30 | 30 Jun 2024 | |
| 22 | Baker Dance School | Ava Evans | LS1 1UR | Leeds | UK | ava.evans@example.com | 30 | 24 Jun 2021 |
| 23 | Cathedral Pharmacy | Noah Walker | BS1 4DJ | Bristol | UK | noah.walker@example.com | 30 | 25 Mar 2023 |
| 24 | Meyer Physio | Lucas Taylor | LS1 1UR | Leeds | UK | lucas.taylor@example.com | 14 | 10 May 2022 |
Activities 70 rows, 7 columns
| ActivityID | CustomerID | ActivityDate | ActivityType | Notes | FollowUp | Done |
|---|---|---|---|---|---|---|
| 1 | 3 | 1 Feb 2025 | Call | Workshop date agreed | 2 Mar 2025 | ☑ |
| 2 | 2 | 2 Feb 2025 | Call | Workshop date agreed | ☐ | |
| 3 | 11 | 28 Feb 2025 | Call | Support case discussed | 18 Mar 2025 | ☑ |
| 4 | 7 | 7 Mar 2025 | Quote sent | ☐ | ||
| 5 | 16 | 12 Mar 2025 | Call | Workshop date agreed | 2 Apr 2025 | ☑ |
| 6 | 21 | 11 Apr 2025 | Call | Question about invoice | 12 May 2025 | ☐ |
| 7 | 10 | 12 Apr 2025 | Call | Workshop date agreed | ☐ | |
| 8 | 16 | 25 Apr 2025 | Documents sent | 19 May 2025 | ☑ | |
| 9 | 18 | 1 May 2025 | Meeting | Annual review | 30 May 2025 | ☑ |
| 10 | 14 | 3 May 2025 | Quote sent | ☐ | ||
| 11 | 24 | 5 May 2025 | Call | Interested in training | 2 Jun 2025 | ☑ |
| 12 | 6 | 5 May 2025 | Call | Interested in training | 25 May 2025 | ☑ |
| 13 | 19 | 24 May 2025 | Call | Support case discussed | ☐ | |
| 14 | 3 | 3 Jun 2025 | Call | Question about invoice | ☐ | |
| 15 | 20 | 21 Jun 2025 | Meeting | Workshop prepared | 16 Jul 2025 | ☑ |
| 16 | 18 | 23 Jul 2025 | Call | Support case discussed | ☐ | |
| 17 | 4 | 27 Jul 2025 | Feedback on quote | 16 Aug 2025 | ☑ | |
| 18 | 4 | 1 Aug 2025 | Call | Support case discussed | 28 Aug 2025 | ☑ |
| 19 | 23 | 1 Aug 2025 | Call | Question about invoice | 30 Aug 2025 | ☑ |
| 20 | 3 | 12 Aug 2025 | Call | Support case discussed | 4 Sep 2025 | ☑ |
| 21 | 21 | 10 Sep 2025 | Call | Question about invoice | ☐ | |
| 22 | 11 | 15 Sep 2025 | Meeting | Support plan presented | 23 Sep 2025 | ☑ |
| 23 | 10 | 18 Sep 2025 | Call | Support case discussed | 17 Oct 2025 | ☑ |
| 24 | 7 | 21 Oct 2025 | Call | Interested in training | ☐ | |
| 25 | 21 | 7 Nov 2025 | Quote sent | 21 Nov 2025 | ☑ | |
| 26 | 18 | 9 Nov 2025 | Meeting | Annual review | 27 Nov 2025 | ☑ |
| 27 | 2 | 12 Nov 2025 | Meeting | Annual review | ☐ | |
| 28 | 5 | 14 Nov 2025 | Call | Question about invoice | ☐ | |
| 29 | 3 | 13 Jan 2026 | Meeting | Workshop prepared | ☐ | |
| 30 | 13 | 13 Jan 2026 | Meeting | Annual review | 24 Jan 2026 | ☑ |
| 31 | 1 | 16 Jan 2026 | Feedback on quote | ☐ | ||
| 32 | 21 | 9 Feb 2026 | Quote sent | ☐ | ||
| 33 | 22 | 13 Feb 2026 | Call | Interested in training | 27 Feb 2026 | ☑ |
| 34 | 12 | 19 Feb 2026 | Meeting | Annual review | 4 Mar 2026 | ☑ |
| 35 | 6 | 20 Feb 2026 | Quote sent | 2 Mar 2026 | ☑ | |
| 36 | 16 | 28 Feb 2026 | Documents sent | ☐ | ||
| 37 | 2 | 7 Mar 2026 | Call | Question about invoice | ☐ | |
| 38 | 6 | 23 Mar 2026 | Meeting | Workshop prepared | 22 Apr 2026 | ☑ |
| 39 | 17 | 2 May 2026 | Meeting | Workshop prepared | 1 Jun 2026 | ☐ |
| 40 | 6 | 15 May 2026 | Call | Question about invoice | 7 Jun 2026 | ☐ |
| 41 | 17 | 17 May 2026 | Call | Workshop date agreed | 19 Jun 2026 | ☑ |
| 42 | 6 | 21 May 2026 | Quote sent | 9 Jun 2026 | ☑ | |
| 43 | 2 | 9 Jun 2026 | Meeting | Support plan presented | ☐ | |
| 44 | 22 | 20 Jun 2026 | Documents sent | 27 Jun 2026 | ☐ | |
| 45 | 2 | 28 Jun 2026 | Meeting | Workshop prepared | 15 Jul 2026 | ☑ |
| 46 | 3 | 29 Jun 2026 | Meeting | Support plan presented | 14 Jul 2026 | ☑ |
| 47 | 10 | 7 Jul 2026 | Meeting | Annual review | ☐ | |
| 48 | 16 | 8 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 49 | 12 | 14 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 50 | 22 | 21 Jul 2026 | Call | Interested in training | ☐ | |
| 51 | 16 | 21 Jul 2026 | Documents sent | ☐ | ||
| 52 | 7 | 27 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 53 | 18 | 2 Aug 2026 | Call | Workshop date agreed | 14 Aug 2026 | ☑ |
| 54 | 21 | 3 Aug 2026 | Call | Workshop date agreed | ☐ | |
| 55 | 14 | 14 Aug 2026 | Meeting | Annual review | ☐ | |
| 56 | 3 | 21 Aug 2026 | Call | Question about invoice | ☐ | |
| 57 | 21 | 30 Aug 2026 | Call | Support case discussed | ☐ | |
| 58 | 8 | 4 Sep 2026 | Call | Support case discussed | 9 Oct 2026 | ☑ |
| 59 | 6 | 10 Sep 2026 | Call | Workshop date agreed | 24 Sep 2026 | ☑ |
| 60 | 10 | 14 Sep 2026 | Call | Support case discussed | ☐ | |
| 61 | 3 | 14 Sep 2026 | Documents sent | 23 Sep 2026 | ☑ | |
| 62 | 21 | 19 Sep 2026 | Quote sent | ☐ | ||
| 63 | 24 | 29 Sep 2026 | Call | Interested in training | ☐ | |
| 64 | 21 | 5 Oct 2026 | Call | Workshop date agreed | ☐ | |
| 65 | 11 | 17 Oct 2026 | Feedback on quote | 24 Oct 2026 | ☐ | |
| 66 | 16 | 22 Oct 2026 | Call | Question about invoice | 26 Nov 2026 | ☐ |
| 67 | 20 | 13 Nov 2026 | Meeting | Workshop prepared | ☐ | |
| 68 | 3 | 22 Nov 2026 | Call | Interested in training | 3 Dec 2026 | ☐ |
| 69 | 2 | 24 Nov 2026 | Call | Question about invoice | ☐ | |
| 70 | 19 | 26 Nov 2026 | Quote sent | 15 Dec 2026 | ☐ |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The lesson on totals queries explains the Total row with Max and Min.
Task 3: customers without activity since June
Task Which customers have had no activity since 1 Jun 2026? Show Company and City, sorted by Company. Customers without any activity belong in the list. Write the query in SQL view.
Customers 24 rows, 9 columns
| CustomerID | Company | ContactName | PostalCode | City | Country | PaymentTerms | CustomerSince | |
|---|---|---|---|---|---|---|---|---|
| 1 | Bauer Plumbing Ltd | Henry Davies | 80202 | Denver | USA | henry.davies@example.com | 14 | 16 Sep 2020 |
| 2 | Northlight Publishing | James Walker | EC1A 1BB | London | UK | james.walker@example.com | 30 | 14 May 2024 |
| 3 | Shaw & Partners Accountants | Ava Brown | 02108 | Boston | USA | ava.brown@example.com | 30 | 13 Sep 2020 |
| 4 | Summit Consulting Inc | Grace Taylor | M1 1AE | Manchester | UK | grace.taylor@example.com | 30 | 23 Nov 2020 |
| 5 | City Utilities | Mia Evans | 02108 | Boston | USA | 30 | 25 Jun 2024 | |
| 6 | Market Street Clinic | Olivia Smith | EC1A 1BB | London | UK | olivia.smith@example.com | 30 | 14 Jun 2019 |
| 7 | Roth Legal LLP | Noah Davies | 80202 | Denver | USA | noah.davies@example.com | 14 | 25 Sep 2020 |
| 8 | Weber Logistics | Sophia Smith | 02108 | Boston | USA | sophia.smith@example.com | 30 | 22 Mar 2019 |
| 9 | Krause Bakery | Ava Taylor | 80202 | Denver | USA | ava.taylor@example.com | 30 | 10 Oct 2019 |
| 10 | Lindner Motors | Liam Smith | 80202 | Denver | USA | liam.smith@example.com | 30 | 30 Nov 2021 |
| 11 | Lakeview Hotel | Ava Wilson | G1 1XQ | Glasgow | UK | ava.wilson@example.com | 30 | 5 Sep 2020 |
| 12 | Hansen Printing | Olivia Johnson | EC1A 1BB | London | UK | olivia.johnson@example.com | 30 | 9 Jul 2021 |
| 13 | Fisher Electrical | Mia Clark | BS1 4DJ | Bristol | UK | 30 | 30 Aug 2023 | |
| 14 | Talbot Town Council | Ava Davies | LS1 1UR | Leeds | UK | ava.davies@example.com | 14 | 8 Jul 2022 |
| 15 | Sunshine Nursery | Grace Evans | BS1 4DJ | Bristol | UK | grace.evans@example.com | 30 | 8 Jul 2022 |
| 16 | Wolf Brewing Co | Liam Evans | M1 1AE | Manchester | UK | liam.evans@example.com | 30 | 1 Sep 2022 |
| 17 | Newman Opticians | Ava Evans | 02108 | Boston | USA | ava.evans@example.com | 14 | 10 May 2021 |
| 18 | Cook Dental Practice | Mia Taylor | 80202 | Denver | USA | mia.taylor@example.com | 14 | 1 Jun 2020 |
| 19 | Richter Realty | Lucas Walker | 02108 | Boston | USA | lucas.walker@example.com | 30 | 5 Mar 2024 |
| 20 | Bloom Garden Centre | Liam Clark | EC1A 1BB | London | UK | liam.clark@example.com | 14 | 10 Feb 2019 |
| 21 | Vogt Joinery | Emma Evans | LS1 1UR | Leeds | UK | 30 | 30 Jun 2024 | |
| 22 | Baker Dance School | Ava Evans | LS1 1UR | Leeds | UK | ava.evans@example.com | 30 | 24 Jun 2021 |
| 23 | Cathedral Pharmacy | Noah Walker | BS1 4DJ | Bristol | UK | noah.walker@example.com | 30 | 25 Mar 2023 |
| 24 | Meyer Physio | Lucas Taylor | LS1 1UR | Leeds | UK | lucas.taylor@example.com | 14 | 10 May 2022 |
Activities 70 rows, 7 columns
| ActivityID | CustomerID | ActivityDate | ActivityType | Notes | FollowUp | Done |
|---|---|---|---|---|---|---|
| 1 | 3 | 1 Feb 2025 | Call | Workshop date agreed | 2 Mar 2025 | ☑ |
| 2 | 2 | 2 Feb 2025 | Call | Workshop date agreed | ☐ | |
| 3 | 11 | 28 Feb 2025 | Call | Support case discussed | 18 Mar 2025 | ☑ |
| 4 | 7 | 7 Mar 2025 | Quote sent | ☐ | ||
| 5 | 16 | 12 Mar 2025 | Call | Workshop date agreed | 2 Apr 2025 | ☑ |
| 6 | 21 | 11 Apr 2025 | Call | Question about invoice | 12 May 2025 | ☐ |
| 7 | 10 | 12 Apr 2025 | Call | Workshop date agreed | ☐ | |
| 8 | 16 | 25 Apr 2025 | Documents sent | 19 May 2025 | ☑ | |
| 9 | 18 | 1 May 2025 | Meeting | Annual review | 30 May 2025 | ☑ |
| 10 | 14 | 3 May 2025 | Quote sent | ☐ | ||
| 11 | 24 | 5 May 2025 | Call | Interested in training | 2 Jun 2025 | ☑ |
| 12 | 6 | 5 May 2025 | Call | Interested in training | 25 May 2025 | ☑ |
| 13 | 19 | 24 May 2025 | Call | Support case discussed | ☐ | |
| 14 | 3 | 3 Jun 2025 | Call | Question about invoice | ☐ | |
| 15 | 20 | 21 Jun 2025 | Meeting | Workshop prepared | 16 Jul 2025 | ☑ |
| 16 | 18 | 23 Jul 2025 | Call | Support case discussed | ☐ | |
| 17 | 4 | 27 Jul 2025 | Feedback on quote | 16 Aug 2025 | ☑ | |
| 18 | 4 | 1 Aug 2025 | Call | Support case discussed | 28 Aug 2025 | ☑ |
| 19 | 23 | 1 Aug 2025 | Call | Question about invoice | 30 Aug 2025 | ☑ |
| 20 | 3 | 12 Aug 2025 | Call | Support case discussed | 4 Sep 2025 | ☑ |
| 21 | 21 | 10 Sep 2025 | Call | Question about invoice | ☐ | |
| 22 | 11 | 15 Sep 2025 | Meeting | Support plan presented | 23 Sep 2025 | ☑ |
| 23 | 10 | 18 Sep 2025 | Call | Support case discussed | 17 Oct 2025 | ☑ |
| 24 | 7 | 21 Oct 2025 | Call | Interested in training | ☐ | |
| 25 | 21 | 7 Nov 2025 | Quote sent | 21 Nov 2025 | ☑ | |
| 26 | 18 | 9 Nov 2025 | Meeting | Annual review | 27 Nov 2025 | ☑ |
| 27 | 2 | 12 Nov 2025 | Meeting | Annual review | ☐ | |
| 28 | 5 | 14 Nov 2025 | Call | Question about invoice | ☐ | |
| 29 | 3 | 13 Jan 2026 | Meeting | Workshop prepared | ☐ | |
| 30 | 13 | 13 Jan 2026 | Meeting | Annual review | 24 Jan 2026 | ☑ |
| 31 | 1 | 16 Jan 2026 | Feedback on quote | ☐ | ||
| 32 | 21 | 9 Feb 2026 | Quote sent | ☐ | ||
| 33 | 22 | 13 Feb 2026 | Call | Interested in training | 27 Feb 2026 | ☑ |
| 34 | 12 | 19 Feb 2026 | Meeting | Annual review | 4 Mar 2026 | ☑ |
| 35 | 6 | 20 Feb 2026 | Quote sent | 2 Mar 2026 | ☑ | |
| 36 | 16 | 28 Feb 2026 | Documents sent | ☐ | ||
| 37 | 2 | 7 Mar 2026 | Call | Question about invoice | ☐ | |
| 38 | 6 | 23 Mar 2026 | Meeting | Workshop prepared | 22 Apr 2026 | ☑ |
| 39 | 17 | 2 May 2026 | Meeting | Workshop prepared | 1 Jun 2026 | ☐ |
| 40 | 6 | 15 May 2026 | Call | Question about invoice | 7 Jun 2026 | ☐ |
| 41 | 17 | 17 May 2026 | Call | Workshop date agreed | 19 Jun 2026 | ☑ |
| 42 | 6 | 21 May 2026 | Quote sent | 9 Jun 2026 | ☑ | |
| 43 | 2 | 9 Jun 2026 | Meeting | Support plan presented | ☐ | |
| 44 | 22 | 20 Jun 2026 | Documents sent | 27 Jun 2026 | ☐ | |
| 45 | 2 | 28 Jun 2026 | Meeting | Workshop prepared | 15 Jul 2026 | ☑ |
| 46 | 3 | 29 Jun 2026 | Meeting | Support plan presented | 14 Jul 2026 | ☑ |
| 47 | 10 | 7 Jul 2026 | Meeting | Annual review | ☐ | |
| 48 | 16 | 8 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 49 | 12 | 14 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 50 | 22 | 21 Jul 2026 | Call | Interested in training | ☐ | |
| 51 | 16 | 21 Jul 2026 | Documents sent | ☐ | ||
| 52 | 7 | 27 Jul 2026 | Meeting | Workshop prepared | ☐ | |
| 53 | 18 | 2 Aug 2026 | Call | Workshop date agreed | 14 Aug 2026 | ☑ |
| 54 | 21 | 3 Aug 2026 | Call | Workshop date agreed | ☐ | |
| 55 | 14 | 14 Aug 2026 | Meeting | Annual review | ☐ | |
| 56 | 3 | 21 Aug 2026 | Call | Question about invoice | ☐ | |
| 57 | 21 | 30 Aug 2026 | Call | Support case discussed | ☐ | |
| 58 | 8 | 4 Sep 2026 | Call | Support case discussed | 9 Oct 2026 | ☑ |
| 59 | 6 | 10 Sep 2026 | Call | Workshop date agreed | 24 Sep 2026 | ☑ |
| 60 | 10 | 14 Sep 2026 | Call | Support case discussed | ☐ | |
| 61 | 3 | 14 Sep 2026 | Documents sent | 23 Sep 2026 | ☑ | |
| 62 | 21 | 19 Sep 2026 | Quote sent | ☐ | ||
| 63 | 24 | 29 Sep 2026 | Call | Interested in training | ☐ | |
| 64 | 21 | 5 Oct 2026 | Call | Workshop date agreed | ☐ | |
| 65 | 11 | 17 Oct 2026 | Feedback on quote | 24 Oct 2026 | ☐ | |
| 66 | 16 | 22 Oct 2026 | Call | Question about invoice | 26 Nov 2026 | ☐ |
| 67 | 20 | 13 Nov 2026 | Meeting | Workshop prepared | ☐ | |
| 68 | 3 | 22 Nov 2026 | Call | Interested in training | 3 Dec 2026 | ☐ |
| 69 | 2 | 24 Nov 2026 | Call | Question about invoice | ☐ | |
| 70 | 19 | 26 Nov 2026 | Quote sent | 15 Dec 2026 | ☐ |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The lesson on subqueries shows NOT IN with a subquery.
Common mistakes
Done follow-ups counted
Without the criterion under Done, every activity with a date shows up, including the one from spring that was dealt with long ago. The list gets long and nobody works through it.
Date before June instead of no date from June
WHERE ActivityDate < #6/1/2026# returns customers with an activity before June, even if another came later. What you want is the absence of a later activity, and that only works with NOT IN (or NOT EXISTS).
In real Access
- For daily work, make the query from task 1 the start form, sorted by follow-up date. Instead of the fixed date it uses Date(), which is today.
- A continuous form with a Done check box turns the query into a to-do list: tick it and the row is gone the next time you open it.
- Many CRM databases also store who had the contact. Then the query shows each person only their own follow-ups.
How to check your result
- Task 1: 6 follow-ups, the oldest from 12 May 2025 at Vogt Joinery, the latest from 26 Nov 2026 at Wolf Brewing Co.
- Task 2: 22 companies; the longest ago is the last activity with Summit Consulting Inc and Cathedral Pharmacy (1 Aug 2025). Two customers are missing because they have no activity at all.
- Task 3: 8 customers from Bauer Plumbing Ltd to Sunshine Nursery, including Krause Bakery and Sunshine Nursery, who have no activity at all.
Back to the course overview.