Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/cn/tutorials/databend-cloud/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import StepContent from '@site/src/components/Steps/step-content';
```sql
SELECT COUNT(*)
FROM covid_19_us_2022_3812
WHERE date IS NULL OR country IS NULL OR state IS NULL OR flip IS NULL OR cases IS NULL OR deaths IS NULL;
WHERE date IS NULL OR country IS NULL OR state IS NULL OR fips IS NULL OR cases IS NULL OR deaths IS NULL;
```

此 SQL 语句返回 `41571`,表示包含至少一个 NULL 值的行数。
Expand All @@ -58,7 +58,7 @@ WHERE date IS NULL OR country IS NULL OR state IS NULL OR flip IS NULL OR cases

```sql
DELETE FROM covid_19_us_2022_3812
WHERE date IS NULL OR country IS NULL OR state IS NULL OR flip IS NULL OR cases IS NULL OR deaths IS NULL;
WHERE date IS NULL OR country IS NULL OR state IS NULL OR fips IS NULL OR cases IS NULL OR deaths IS NULL;
```

</StepContent>
Expand All @@ -71,9 +71,9 @@ WHERE date IS NULL OR country IS NULL OR state IS NULL OR flip IS NULL OR cases
1. 在同一个工作表中,使用以下 SQL 语句检查表中是否存在重复值:

```sql
SELECT date, country, state, flip, cases, deaths, COUNT(*)
SELECT date, country, state, fips, cases, deaths, COUNT(*)
FROM covid_19_us_2022_3812
GROUP BY date, country, state, flip, cases, deaths
GROUP BY date, country, state, fips, cases, deaths
HAVING COUNT(*) > 1;
```

Expand Down Expand Up @@ -184,4 +184,4 @@ WHERE

2. 将左侧的图表拖放到仪表盘上。您可以根据需要调整图表的大小或重新定位。

![Alt text](@site/static/public/img/cloud/dashboard-7.gif)
![Alt text](@site/static/public/img/cloud/dashboard-7.gif)
Loading