国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫ECS 116、代做SQL設計編程

時間:2024-04-30  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



ECS 116 Databases for Non-Majors / Data Management for Data Science
Programming Assignment 1
A. Prelude
1. The assignment is of 25 points.
2. Last date of submission is April 28, Sunday @ 11:59 pm.
3. Late submissions will be graded according to the late policy. Specifically, 10% of grade is deducted if you are
up to 24 hours late, 20% is deducted if you are 24 to 48 hours late, and no credit if turned in after 48 hours.
4. This assignment will be solo.
5. Create a new sql file for each step namely (Step 2, Step 3, Step 4) if you have to use sql commands through
DBeaver.
6. Your assignment will be graded based on correctness (passing all tests), ingenuity and originality.
7. All the required files (csv) can be found under Files in Canvas.
8. Plagiarism is strictly prohibited. You’re free to discuss high-level concepts amongst your peers. However,
cheating will result in no points on the assignment and reporting to OSSJA.
B. Step 1: Uploading africa fs after cleaning db.csv into PostgreSQL
1. In DBeaver create a new database faostat. Set that as the default database
2. Create a schema food sec (or “food sec v01”) in your database faostat. Set that as default schema.
3. Do set search path to food sec;
4. Load the file africa fs after cleaning db.csv into the schema food sec to make table africa fs ac.
5. Modify the data types of some of the columns of africa fs ac as follows:
 area code m49: varchar(3)
 element code: varchar(4)
 year code: varchar(8)
 value: numeric
 After making these changes, click on “Save” at bottom of pane.
6. Check whether the values for value column have been imported correctly.
 Do a selection query to get distinct values that are ≤ 2.
 Using Excel see what are the values ≤ 2.
 Do these match?
7. Do an SQL query to DELETE all tuples from africa fs ac (it will ask you to confirm that you want to do this
delete).
8. Use DBeaver to import the file africa fs after cleaning db.csv (don’t use the SQL “COPY” command
because it complains about a data type encoding issue).
 Do a sanity check that the number of tuples in your table is same as in csv file.
 Again check on the values in column value.
1
C. Step 2: Build Table gdp stunting overweight anemia
1. Similar to the construction of gdp stunting overweight shown in the 2024-04-09 lecture and the SQL script
faostat-part 02-transforming africa fs.sql, use DBeaver and SQL commands to build a table
gdp stunting overweight anemia which has, for each country-year pair the following associated values for:
 GDP per capita Purchasing Power Parity (22013): use column name gdp p ppp.
 Percentage of children over 5 years of age who are stunted (21025): . childhood stunting
 Percentage of children over 5 years of age who are overweight (21043): childhood overweight.
 Prevalence of anemia among women of reproductive age: anemia
2. Add this table into your schema food sec.
Figure 1: Almost correct example of the table gdp stunting overweight anemia. Your table should have 3 characters
for area code m49 column, and may have some decimal values for the last 4 columns.
D. Step 3: Build table energy undernourished
1. Note that many records in africa fs ac have year and year code values based on 3-year intervals rather than
single years. We will use some of this data to gain more insight about countries. In particular, we will interpret
a 3-year interval as applying to the year in the middle, e.g., we will interpret 2000-2002 as applying to the year
2001.
2. First, build a table energy undernourished which has, for each country-year code pair the associated values
for:
 Average dietary energy supply adequacy (21010): use column name dietary energy.
 Prevalence of undernourishment (210041): use column name undernourished.
 Note: this table should have 1040 rows in it.
3. Now add a column derived year to the table energy undernourished, where for each tuple, the derived year
value is computed by using the year in the middle of the first and third years in the year code of the tuple.
4. The column you added probably has data type integer. Convert this to varchar(4).
2
Figure 2: Almost correct example of the table energy undernourished. As with Figure 1, the area code m49 column
should have 3 characters, and the values for last 3 columns may have decimal values.
E. Step 4: Joining the gdp stunting overweight anemia and
energy undernourished tables to create new
table gdp energy with fs indicators
1. Create a selection query that combines the table gdp stunting overweight anemia and energy undernourished
to form a new table gdp energy with fs indicators
 The columns should include area code m49, area, year code, gdp pc ppp, dietary energy, childhood stunting,
childhood overweight, anemia and undernourished.
 Tuples in this table should be formed by combining tuples from gdp stunting overweight anemia and
energy undernourished where year code from the first table equals derived year of the second table.
 Note: your table should have 895 tuples in it.
2. Export the table gdp energy with fs indicators as a csv file gdp energy with fs indicators.csv.
3. Sort this csv file by area (country name) and then year code.
4. CONGRATULATIONS: you have created a table that we can use later to determine whether there are sta?tistical correlations between gdp per capita and/or stunting, childhood overweight, anemia in women and/or
undernourishment.
Figure 3: Example of the table gdp energy with fs indicators
5. Create a new table gdp energy fs aggs.
 Which has columns as:
– area code m49
– area
– avg gdp pc ppp
– avg dietary energy
3
– avg childhood stunting
– avg childhood overweight
– avg anemia
– avg undernourished
 The “avg” columns should hold the averages of the corresponding items for each country, over all of the
years of available data.
 Use the round operator on the “avg” value, so that they have type numeric and are rounded to 2 decimal
points. Use the following kind of expression: round(< expression for average >::numeric, 2).
6. Export the table gdp energy fs aggs as a csv file gdp energy fs aggs.csv.
7. Sort the csv file by area (i.e., country name).
Figure 4: Almost correct example of the table gdp energy fs aggs. You will obtain slightly different values. This
table was computed with rounded values for various columns, rather than with values having decimals.
F. Submission
1. Please make a single zip file that includes
 gdp energy with fs indicators.csv
 gdp energy fs aggs.csv
 The DBeaver sql scripts that you used to create these 2 csv files, specifically, Step 2.sql, Step 3.sql,
Step 4.sql).
 Name the zip file as FirstName LastName LastFourDigitsOfStudentID ECS116 A1.
2. Upload it on Canvas for Assignment 1 (This is a solo assignment so don’t add your peers to your submission).

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp














 

掃一掃在手機打開當前頁
  • 上一篇:CS 6347代做、MATLAB程序設計代寫
  • 下一篇:菲律賓達沃景點(達沃著名景點介紹)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久久视频精品| 国产日韩欧美在线观看| 久久久久久亚洲精品不卡4k岛国| 国产欧美日韩一区二区三区| 黄页网站大全在线观看| 青春草在线视频免费观看| 日韩av在线第一页| 欧美一区二区福利| 日本国产一区二区三区| 日韩精品av一区二区三区| 日韩欧美精品久久| 日本久久久精品视频| 天天爱天天做天天操| 天堂资源在线亚洲视频| 日本精品久久久久中文字幕 | 国产精品永久免费| 99在线观看视频免费| 97久久国产精品| 久久久综合香蕉尹人综合网 | 日韩中文字幕免费| xxx一区二区| 久久国产色av| 日本一区二区三区视频在线播放 | 国产一区精品视频| 国产伦精品一区二区三区| 久久久免费在线观看| 国产精品视频免费在线观看 | 亚洲综合日韩在线| 性一交一乱一伧国产女士spa| 欧洲黄色一级视频| 国产美女久久久| 日韩中文字幕免费看| 在线观看成人一级片| 欧美一级成年大片在线观看| 国产精品一二区| 久久精品99久久久香蕉| 一本大道熟女人妻中文字幕在线| 日本国产高清不卡| 欧美国产一二三区| 国产极品粉嫩福利姬萌白酱| 色综合久久88| 国产又黄又猛视频| 国产精品成久久久久三级| 青青青青在线视频| 久久久久久网址| 日本精品久久久久中文字幕| 99热成人精品热久久66| 久久久久久成人| 激情内射人妻1区2区3区| 国产精品一区二区久久久| 久久久久久久久电影| 亚洲中文字幕无码av永久| 精品一区二区久久久久久久网站| 成人免费观看毛片| 久久av在线看| 国产美女久久久| 欧美人与物videos| 成人国内精品久久久久一区| 欧美成人一二三| 黄色三级中文字幕| 国产精品黄色av| 国产亚洲欧美一区二区| 久久夜色精品国产亚洲aⅴ| 精品人伦一区二区三区| 国产精品久久久久av| 蜜臀av无码一区二区三区| 国产精品福利小视频| 国产免费一区二区三区香蕉精 | 91免费版网站在线观看| 一本久道综合色婷婷五月| 91精品综合视频| 天天成人综合网| 日韩中文字幕视频在线观看| 欧美在线一区二区三区四| 色777狠狠综合秋免鲁丝| 官网99热精品| 97久久天天综合色天天综合色hd| 日韩成人在线资源| 久久九九精品99国产精品| 免费国产一区| 日韩中文在线字幕| 国产精品美女主播在线观看纯欲| 国产一级不卡毛片| 天天人人精品| 国产精品免费观看高清| 91精品国产99| 国产综合色香蕉精品| 日本一区高清在线视频| 精品国产免费一区二区三区| 日韩亚洲国产中文字幕| 成人免费91在线看| 国内成人精品一区| 日韩视频一二三| 天堂精品一区二区三区| 亚洲福利av| 久久久久久久久久久国产| 久久久久一区二区三区| 成人国产精品久久久久久亚洲| 91精品视频在线免费观看| av免费观看国产| 97人人模人人爽人人喊中文字| 国产精品一二三在线观看| 韩日精品中文字幕| 欧美一区激情视频在线观看| 亚洲国产精品久久久久久女王| 国产精品极品在线| 日本一区二区在线播放| 亚洲伊人成综合成人网| 久久久久久成人精品| 欧美日韩xxxxx| 亚洲一区二区三区久久| 日韩精品一区二区三区不卡| 一级日韩一区在线观看| 午夜精品亚洲一区二区三区嫩草| 日本免费a视频| 日韩精品久久久免费观看| 日韩av一区二区三区在线观看| 人妻无码久久一区二区三区免费| 日韩免费电影一区二区三区| 日产中文字幕在线精品一区| 日本不卡视频在线播放| 免费看国产一级片| 欧美亚洲成人网| 国产尤物91| 国产高清精品一区二区三区| 国产精品国产精品国产专区蜜臀ah| 亚洲精品一卡二卡三卡四卡 | 久久人人爽国产| 国产一级做a爰片久久毛片男| 青青草影院在线观看| 欧美精品成人网| 日韩精品国内| 日韩精品第一页| 日韩成人av电影在线| 欧美一级在线看| 日本国产一区二区三区| 人妻熟女一二三区夜夜爱| 欧美久久久久久| 国产日本欧美在线| 99热一区二区三区| 国产成人精品日本亚洲专区61| www.亚洲免费视频| 久久这里有精品视频| 午夜精品久久久久久99热软件| 欧美亚洲一级二级| 99一区二区三区| 国产精品视频在线播放| 一区二区精品在线| 欧美一区二区视频97| 蜜桃传媒视频第一区入口在线看| 国产精品自产拍在线观| 久久精品国产一区二区三区| 亚洲在线免费看| 毛葺葺老太做受视频| 国产成人一区二区| 无码无遮挡又大又爽又黄的视频| 国产精品中文字幕在线观看| 国产精品-区区久久久狼| 日韩精品一区二区三区电影| 久久香蕉综合色| 亚洲精品国产系列| 超碰97在线播放| 欧美激情视频给我| 黄色一级二级三级| 国产成人免费av电影| 激情小说网站亚洲综合网| 亚洲va韩国va欧美va精四季| 免费日韩中文字幕| 国产精品久久久久久久久久久久久久| 国产精品影片在线观看| 国产成人艳妇aa视频在线| 九九精品在线播放| 欧美专区在线观看| 国产免费成人av| 久久久国产91| 日本精品二区| 国产美女视频免费| 中文字幕综合在线观看| 免费av观看网址| 色伦专区97中文字幕| 欧美激情国产日韩| 久久爱av电影| 日韩在线第三页| 97精品国产97久久久久久春色| 无码内射中文字幕岛国片| 91精品一区二区| 色噜噜一区二区| 成人av一级片| 日本不卡一区| 久久久97精品| 国产日韩欧美二区| 五月天色婷婷综合| 久久久久久尹人网香蕉| 日韩av电影免费在线| 日韩网站免费观看| 欧美交换配乱吟粗大25p| 国产精品免费区二区三区观看| 国产专区在线视频| 国产精品久久久久久久久久直播| 91精品国产沙发|