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

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

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

時間:2024-04-30  來源:合肥網(wǎng)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程序設計代寫
  • 下一篇:菲律賓達沃景點(達沃著名景點介紹)
  • 無相關信息
    合肥生活資訊

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

    關于我們 | 打賞支持 | 廣告服務 | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产在线日韩在线| 国产精品一久久香蕉国产线看观看| 日韩欧美精品免费| 美媛馆国产精品一区二区| 久久人人爽人人爽人人片av高请| 久久这里有精品| 欧美一级电影久久| 国产成人极品视频| 亚洲一区二区免费| 国产视频一视频二| 国产精品黄视频| 欧美在线观看一区二区三区| 久久青草福利网站| 亚洲精品久久久久久一区二区| www..com日韩| 亚洲专区国产精品| 国产精品自拍合集| 欧美激情精品久久久| 韩国欧美亚洲国产| 久久精品美女视频网站| 欧美在线视频一区二区| 日韩有码在线视频| 人体内射精一区二区三区| 久操网在线观看| 欧美综合第一页| 日韩有码在线播放| 秋霞在线观看一区二区三区| www.美女亚洲精品| 欧美精品第三页| 国产精品久久久久久久久久 | 狠狠干 狠狠操| 国产精品视频网站在线观看| 日韩欧美一区二区三区久久婷婷 | 久久久精品国产| 日本91av在线播放| 国产a级全部精品| 肉大捧一出免费观看网站在线播放| 成人精品一区二区三区电影免费| 国产999在线观看| 国产欧美精品aaaaaa片| 久久91精品国产| 国产一区二区在线免费视频| 日韩视频免费看| 日韩精品久久久毛片一区二区| 国产黄色特级片| 中文字幕不卡每日更新1区2区| 99在线高清视频在线播放| 亚洲AV无码成人精品一区| 91成人福利在线| 日本一区二区视频| 久久黄色av网站| 免费毛片网站在线观看| 麻豆成人在线看| 国产精品综合网站| 午夜在线视频免费观看| 国产www精品| 欧美视频在线播放一区| 久久色免费在线视频| 男人亚洲天堂网| 精品国产第一页| 91精品国产91久久久久久吃药| 一区二区三区四区免费观看| 国产欧美一区二区三区在线| 久久中文久久字幕| 91免费国产视频| 日本高清久久天堂| 国产精品电影网| av网址在线观看免费| 日本精品久久久久影院| 国产精品久久国产三级国电话系列| 国产美女精品在线观看| 动漫3d精品一区二区三区| 国产成人精品av在线| 欧美欧美一区二区| 中文字幕久久一区| 国产成人精品福利一区二区三区| 欧美自拍大量在线观看| 国产精品视频在线播放| 国产欧美综合一区| 日本毛片在线免费观看| 国产精品第1页| 国产精品稀缺呦系列在线| 日韩高清国产一区在线观看 | 久久99精品久久久久久青青日本| 日韩黄色片在线| 久久中国妇女中文字幕| 91精品免费看| 欧洲一区二区在线| 亚洲熟妇av一区二区三区| 色婷婷综合久久久久中文字幕1| 国产日韩精品综合网站| 日韩av中文字幕第一页| 精品产品国产在线不卡| 日韩在线www| 超碰免费在线公开| 欧美变态另类刺激| 视频一区在线免费观看| 国产精品免费入口| 久久久久福利视频| 国产情人节一区| 青青草一区二区| 美日韩精品视频免费看| 色黄久久久久久| 99在线免费视频观看| 国内精品久久久久久久果冻传媒 | 成人国产一区二区| 韩国精品久久久999| 欧美一级免费播放| 欧美精品在线网站| 日韩在线观看网址| 99一区二区三区| 国产在线精品自拍| 日韩高清av| 欧美激情一区二区三级高清视频 | 欧美黄网免费在线观看| 久久久国产成人精品| 91福利视频在线观看| 国产欧美中文字幕| 黄色一区三区| 亚洲.欧美.日本.国产综合在线 | 欧美日韩成人一区二区三区 | 国产精品12p| 波多野结衣久草一区| 国产在线观看一区二区三区| 欧美日韩精品免费观看视一区二区| 日韩av免费电影| 视频一区二区精品| 亚洲高清精品中出| 一区二区三区免费看| 久久综合电影一区| 国产精品看片资源| 久久精品男人天堂| 久久久久免费看黄a片app| 国产www精品| 国产高清视频一区三区| 国产精品91久久| 国产精品一区二区久久国产| 国产日韩一区二区三区| 国产日韩三区| 国产欧美精品久久久| 国产伦精品一区二区三区免费视频 | 国产精品一区二区三区免费| 国产自偷自偷免费一区| 国内精品国产三级国产在线专 | 欧美国产视频一区| 欧美激情专区| 欧美在线视频一区二区三区| 日韩精品大片| 欧美亚洲视频一区| 精品欧美一区二区久久久伦 | 91免费福利视频| 8050国产精品久久久久久| 久热国产精品视频一区二区三区| 99视频在线| 久久久在线视频| 久久久久免费精品| 久久精品男人天堂| 国产精品国产三级国产专区51| 精品国产一区久久久| 国产精品久久久久久久免费大片| 国产精品乱码久久久久| 久热精品视频在线观看一区| 精品国产免费av| 亚洲www永久成人夜色| 日本一区二区三区视频免费看| 欧美综合77777色婷婷| 日韩精品综合在线| 国产综合福利在线| www.欧美黄色| 深夜福利91大全| 国产精品视频1区| 亚洲图片在线观看| 日韩精品久久一区二区三区| 日韩视频第二页| 免费在线成人av| 国产精品一区二区三区精品| 久久精品综合一区| 国产精品日韩久久久久| 一区二区欧美日韩| 日韩欧美亚洲精品| 国产区欧美区日韩区| 国产成人亚洲综合青青| 国产精品久久久久7777婷婷| 亚洲欧美丝袜| 日韩av一二三四区| 欧美亚洲另类视频| 古典武侠综合av第一页| 国产精品99一区| 国产成人精品久久二区二区91| 国产精品视频一二三四区| 久久99久久亚洲国产| 欧美一级欧美一级| 精品视频第一区| 成人中文字幕在线播放| 亚洲一区制服诱惑| 丰满人妻中伦妇伦精品app| 91国偷自产一区二区三区的观看方式 | 国产精品无码专区在线观看| 久久成人精品一区二区三区| 视频在线一区二区三区|