99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代寫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程序設計代寫
  • 下一篇:菲律賓達沃景點(達沃著名景點介紹)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          国产一区二区| 欧美大片在线观看一区| 亚洲国产精品久久精品怡红院| 欧美精品一区二区精品网| 性做久久久久久久免费看| 妖精成人www高清在线观看| 1000部精品久久久久久久久| 国内精品久久久久久久影视蜜臀| 能在线观看的日韩av| 欧美 日韩 国产精品免费观看| 一区二区三区高清不卡| 亚洲国产精品久久久久婷婷老年| 国产精品一区二区在线观看| 国产女人精品视频| 狠狠爱综合网| 亚洲国产精品专区久久| 亚洲天堂第二页| 久久久久一本一区二区青青蜜月| 欧美日韩国产成人精品| 国产日韩精品综合网站| 99精品99久久久久久宅男| 99成人精品| 久久久www成人免费无遮挡大片| 久久久久.com| 国产精品视频久久久| 亚洲日本国产| 久久亚洲精品中文字幕冲田杏梨| 国产精品v欧美精品∨日韩| 亚洲国产精品欧美一二99| 久久九九精品99国产精品| 国产精品久久精品日日| 一区二区高清在线观看| 欧美成人午夜影院| 雨宫琴音一区二区在线| 久久精品视频va| 欧美日韩另类字幕中文| 亚洲国产精品久久久久| 久久久久国产精品麻豆ai换脸| 国产精品毛片a∨一区二区三区| 亚洲精品乱码久久久久久日本蜜臀 | 欧美性开放视频| 国产一区二区三区久久精品| 欧美亚洲午夜视频在线观看| 国产精品国码视频| 欧美在线视频二区| 国色天香一区二区| 欧美jizzhd精品欧美喷水| 91久久精品一区二区三区| 欧美激情偷拍| 亚洲影院免费观看| 在线观看av一区| 欧美多人爱爱视频网站| 一本一本大道香蕉久在线精品| 欧美美女视频| 午夜精品www| 伊人夜夜躁av伊人久久| 欧美日韩国产色站一区二区三区| 中文欧美日韩| 亚洲高清视频的网址| 欧美日韩一区二区欧美激情| 欧美亚洲一区| 中日韩视频在线观看| 在线观看亚洲a| 国产亚洲精品久久久久婷婷瑜伽 | 亚洲乱码国产乱码精品精可以看| 嫩草影视亚洲| 欧美片在线播放| 欧美www视频| 亚洲欧美在线另类| 夜夜爽av福利精品导航 | 欧美一区二区免费视频| 91久久精品国产| 国产精品久久国产三级国电话系列| 久久精品国产欧美激情| 宅男噜噜噜66一区二区66| 亚洲国产精品久久久久秋霞不卡 | 亚洲欧美日韩在线综合| 亚洲视频一区二区免费在线观看| 亚洲国产成人91精品 | 欧美顶级艳妇交换群宴| 免费欧美日韩国产三级电影| 另类亚洲自拍| 美女免费视频一区| 欧美成人午夜免费视在线看片| 鲁鲁狠狠狠7777一区二区| 另类酷文…触手系列精品集v1小说| 久久精品免费看| 老司机免费视频一区二区| 久久精品一区中文字幕| 欧美国产精品人人做人人爱| 欧美日韩一区二区三区在线视频| 欧美日韩一区成人| 国产一区三区三区| 亚洲日本成人在线观看| 亚洲综合色激情五月| 久久精品国产欧美激情| 欧美大色视频| 国产一区二区三区高清播放| 一区二区三区自拍| 一本色道久久综合一区 | 国产一区二区精品久久| 亚洲精品裸体| 久久成人精品一区二区三区| 欧美看片网站| 在线观看免费视频综合| 亚洲中午字幕| 欧美极品影院| 一区二区在线观看av| 欧美亚洲免费在线| 国产精品人人做人人爽| 99视频在线观看一区三区| 久久精品1区| 国产午夜精品美女视频明星a级| 日韩网站在线看片你懂的| 美国十次成人| 1024欧美极品| 久久青草福利网站| 国产亚洲激情在线| 性欧美长视频| 国产欧美日韩在线观看| 亚洲网址在线| 国产精品porn| 亚洲一本大道在线| 欧美午夜国产| 中文在线资源观看网站视频免费不卡| 欧美成人免费在线观看| 精品999在线播放| 另类激情亚洲| 亚洲国产精品123| 欧美电影在线免费观看网站 | 欧美成人首页| 一区二区三区高清在线| 国产精品久久久久久久久婷婷| 国产精品99久久99久久久二8 | 国产丝袜一区二区| 久久综合国产精品台湾中文娱乐网| 国产日韩欧美高清| 欧美1区2区| 亚洲天堂av高清| 国产亚洲欧美另类一区二区三区| 欧美在线播放一区| 亚洲激情黄色| 国产日韩欧美亚洲一区| 欧美18av| 欧美一区二区久久久| 亚洲国产精品视频| 国产精品家教| 欧美激情综合亚洲一二区| 午夜精品久久久久久久99水蜜桃 | 欧美精品一区二| 久久久久一区| 欧美一区亚洲一区| 久久精品国产亚洲5555| 亚洲一区精彩视频| 日韩亚洲在线| 亚洲国产婷婷| 亚洲黄色性网站| 激情综合在线| 国产在线欧美| 黄色成人免费观看| 欧美四级剧情无删版影片| 欧美激情亚洲| 欧美成人免费在线视频| 久久免费国产精品1| 久久不射2019中文字幕| 亚洲午夜久久久| 亚洲一区二区在线看| 99在线精品免费视频九九视| 91久久精品美女| 亚洲精品欧美在线| 亚洲精品久久久久中文字幕欢迎你 | 伊人成人在线| 亚洲国产婷婷香蕉久久久久久99| 樱桃国产成人精品视频| 亚洲大片免费看| 999在线观看精品免费不卡网站| 亚洲狼人综合| 一区二区av| 欧美在线影院| 久久免费99精品久久久久久| 狼狼综合久久久久综合网| 久久亚洲一区二区三区四区| 欧美不卡视频一区| 国产精品国产三级国产普通话99 | 国产精品一区亚洲| 国产一区激情| 一区二区不卡在线视频 午夜欧美不卡在 | 久久成人免费日本黄色| 老司机67194精品线观看| 免费观看成人| 国产一区高清视频| 99精品福利视频| 久久理论片午夜琪琪电影网| 欧美先锋影音| 亚洲乱码精品一二三四区日韩在线| 亚洲性线免费观看视频成熟| 久久婷婷国产综合国色天香| 国产精品v日韩精品| 在线日韩欧美视频| 久久精品久久综合|