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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                1000部国产精品成人观看| 国产女主播一区| 欧美日韩国产一级| 精品国产乱码久久久久久闺蜜| 欧美tickle裸体挠脚心vk| 亚洲精品免费在线| 99精品视频在线播放观看| 日韩视频在线你懂得| 麻豆91免费观看| fc2成人免费人成在线观看播放 | 欧美体内she精高潮| 日韩你懂的在线播放| 天天综合天天做天天综合| 欧美亚州韩日在线看免费版国语版| 国产日韩欧美一区二区三区综合| 久久精品国产免费看久久精品| 91精品免费在线| 老司机免费视频一区二区| 日韩一区二区精品在线观看| 亚洲黄色性网站| 51午夜精品国产| 美女一区二区视频| 欧美一区二区三区在线观看| 丁香激情综合国产| 久久久久久97三级| 成人av网在线| 黄色成人免费在线| 亚洲视频一区在线| 精品日韩欧美在线| 欧美精品aⅴ在线视频| 日本精品一区二区三区高清 | 国产精品久久久久影院老司| voyeur盗摄精品| 男男gaygay亚洲| 综合色天天鬼久久鬼色| 91精品国产综合久久久久久久 | 中文子幕无线码一区tr| 欧美日韩在线观看一区二区 | 91久久免费观看| 国产成人午夜视频| 国产揄拍国内精品对白| 日韩影院精彩在线| 亚洲尤物视频在线| 亚洲人成7777| 亚洲综合一二区| 一区二区三区欧美视频| 怡红院av一区二区三区| 一区二区在线观看免费| 亚洲黄色免费网站| 亚洲一区二区精品3399| 视频一区免费在线观看| 日本欧美肥老太交大片| 免费观看成人av| 国产高清视频一区| 91视视频在线观看入口直接观看www | 综合久久久久综合| 日韩伦理免费电影| 亚洲资源在线观看| 久久99热这里只有精品| 国产精品1024| 欧美日韩国产高清一区二区| 欧美电影一区二区三区| 2014亚洲片线观看视频免费| 国产精品萝li| 青青草精品视频| 色综合色综合色综合| 欧美一区二区三区公司| 国产精品家庭影院| 男人操女人的视频在线观看欧美| 成人精品电影在线观看| 日本精品一级二级| 精品伦理精品一区| 丝袜亚洲另类欧美综合| 99久久精品国产观看| 911精品国产一区二区在线| 亚洲精品在线网站| 日本美女一区二区三区视频| 色一情一乱一乱一91av| 久久亚洲捆绑美女| 久久不见久久见中文字幕免费| 色婷婷一区二区| 中文在线免费一区三区高中清不卡| 三级久久三级久久久| 欧美电影一区二区| 日韩黄色免费网站| 欧美草草影院在线视频| 蜜臀av一区二区| 日韩三级精品电影久久久 | 欧美片在线播放| 男男视频亚洲欧美| 欧美va日韩va| 不卡一区在线观看| 亚洲一级二级三级| 精品国产一区二区三区久久久蜜月| 麻豆精品新av中文字幕| 久久这里只有精品视频网| 成人午夜伦理影院| 午夜精品久久久久久久蜜桃app| 欧美日本在线播放| 国产福利一区二区| 亚洲一线二线三线视频| 精品久久久久一区二区国产| www.日本不卡| 亚洲成人综合网站| 中文字幕永久在线不卡| 91精品国产91久久久久久最新毛片| 久久精品国产亚洲5555| 亚洲影院在线观看| 国产日产欧美一区| 日韩欧美一级特黄在线播放| 色999日韩国产欧美一区二区| 美女视频网站黄色亚洲| 亚洲h在线观看| 亚洲午夜电影网| 亚洲日本在线观看| 中文字幕制服丝袜一区二区三区| 欧美α欧美αv大片| 91麻豆精品国产自产在线| 欧美网站大全在线观看| 97精品视频在线观看自产线路二| 免费成人av在线播放| 日韩av一二三| 麻豆成人91精品二区三区| 亚洲成人自拍偷拍| 日本成人中文字幕在线视频 | 亚洲精品一区二区在线观看| 91精品国产综合久久国产大片| 欧美乱熟臀69xxxxxx| 日韩欧美国产一区二区三区| 2022国产精品视频| 国产精品免费视频观看| 亚洲电影第三页| 国内精品伊人久久久久av影院 | 久久影院午夜论| 精品视频色一区| 欧美v国产在线一区二区三区| 2024国产精品视频| 亚洲www啪成人一区二区麻豆| 久久国产精品第一页| 91网页版在线| 欧美高清一级片在线观看| 日韩精品乱码av一区二区| 国产91精品一区二区麻豆网站| 一本久道中文字幕精品亚洲嫩| 欧美精品在线视频| 中文字幕一区二区不卡| 国产剧情一区二区三区| 欧美伦理影视网| 亚洲精品国产一区二区精华液 | 亚欧色一区w666天堂| 国产.精品.日韩.另类.中文.在线.播放| 在线精品视频一区二区| 国产精品美女www爽爽爽| 国产一区 二区| 久久久久久久久久久久久女国产乱| 性欧美大战久久久久久久久| 在线观看日韩av先锋影音电影院| 中文字幕一区二区三区在线播放| 国产精品一区免费在线观看| 欧美在线观看一区二区| 亚洲午夜视频在线观看| 欧美在线免费视屏| 日本免费在线视频不卡一不卡二| 欧美日韩国产成人在线免费| 视频一区视频二区中文字幕| 欧美肥大bbwbbw高潮| 美女国产一区二区| 国产精品女人毛片| 欧美中文字幕一二三区视频| 婷婷激情综合网| 久久亚洲精华国产精华液| 欧美日韩综合在线免费观看| 日韩国产精品久久| 欧美主播一区二区三区美女| 国产精品久久久久久久浪潮网站| 一区二区免费视频| 高清成人免费视频| 欧美日韩中文字幕一区| 国产精品国产三级国产aⅴ原创| 国产夜色精品一区二区av| 中文字幕久久午夜不卡| 香港成人在线视频| www.色综合.com| 日韩欧美国产wwwww| 久久久国产午夜精品| 亚洲欧美中日韩| 精品婷婷伊人一区三区三| 亚洲精选视频免费看| 欧美高清视频一二三区| 狠狠久久亚洲欧美| 天涯成人国产亚洲精品一区av| 国产精品久久看| 国产无遮挡一区二区三区毛片日本| 色哦色哦哦色天天综合| 成人国产精品免费观看动漫| 国产成人亚洲综合a∨婷婷图片| 韩日精品视频一区| 另类人妖一区二区av| 麻豆成人综合网| 国产精品免费免费|