小编Ham*_*bir的帖子

与 awk 脚本作斗争需要帮助才能做到这一点只需要您的建议或逻辑

我有一个sql文件来过滤数据

-- Edit this file by adding your SQL below each question.
-------------------------------------------------------------------------------

-------------------------------------------------------------
-- The following queries are based on the 1994 census data.
-------------------------------------------------------------

.read 1994
-census-summary-1.sql

-- 4. what is the average age of people from China?
select avg(age)
from census
where native_country ='China';

-- 5. what is the average age of people from Taiwan?
select avg(age)
from census
where native_country ='Taiwan';

-- 6. which native countries have "land" in their name?
select distinct(native_country)
from census
where …
Run Code Online (Sandbox Code Playgroud)

awk

1
推荐指数
1
解决办法
114
查看次数

标签 统计

awk ×1