You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/thecoddiwompler)
6
+
7
+
---
8
+
## 🛠️ Problem Statement
9
+
10
+
<b>Table Name : business_city</b>
11
+
12
+
| Column Name |Type |
13
+
| ------------- | ------------- |
14
+
| business_date | date |
15
+
| city_id | int |
16
+
17
+
</br>
18
+
19
+
The table contains two columns business_date and city_id. city_id is the ID of the city which has been onboarded for the business. Note that there could be multiple instances of onboarding of a particular city.
20
+
21
+
Write a SQL query to find the Unique number of cities onboarded for the business for the first time for each year.
22
+
23
+
Return the result table in the order of business_year.
24
+
25
+
The query result format is in the following example.
0 commit comments