日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        亚洲伦理在线免费看| 欧美精品久久久久久| 欧美在线999| 蜜月aⅴ免费一区二区三区| 国产真实乱子伦精品视频| 亚洲精品久久久一区二区三区| 久久久噜噜噜久久狠狠50岁| 欧美视频成人| 欧美精品一区二区三区很污很色的| 久久国产综合精品| 国产精品自拍小视频| 欧美午夜理伦三级在线观看| 久久婷婷国产麻豆91天堂| 久久久久久香蕉网| 欧美性猛片xxxx免费看久爱| 欧美小视频在线观看| 亚洲国产欧美久久| 狠狠色狠狠色综合人人| 欧美日韩中文精品| 欧美在线看片a免费观看| 久久精品一区二区三区中文字幕| 欧美日本中文| 亚洲人精品午夜| 美女脱光内衣内裤视频久久影院| 久久夜色精品国产欧美乱极品| 国产精品视频免费一区| 999亚洲国产精| 裸体素人女欧美日韩| 欧美激情 亚洲a∨综合| 久热精品视频在线观看| 伊人精品在线| 欧美无砖砖区免费| 亚洲另类黄色| 久久久高清一区二区三区| 91久久精品www人人做人人爽| 亚洲中无吗在线| 狠狠久久亚洲欧美专区| 欧美成人精品一区二区| 亚洲欧美另类久久久精品2019| 欧美一区二区| 欧美国产日韩一区| 一区二区三区高清视频在线观看| 欧美日一区二区三区在线观看国产免| 国产日本亚洲高清| 国产在线拍偷自揄拍精品| 欧美视频在线一区| 激情欧美一区| 国产精品综合av一区二区国产馆| 欧美精品一区二区三区在线看午夜| 久久久久久久高潮| 激情久久久久久久久久久久久久久久| 99re6这里只有精品视频在线观看| 日韩视频一区| 欧美精品乱码久久久久久按摩| 亚洲精品久久久久久久久久久久久| 欧美成人国产va精品日本一级| 影音先锋在线一区| 狠狠入ady亚洲精品经典电影| 国产精品国产| 99热精品在线观看| 亚洲午夜激情网站| 国产真实久久| 亚洲国产日韩在线一区模特| 韩国一区二区在线观看| 亚洲永久在线| 欧美性事免费在线观看| 亚洲欧美另类中文字幕| 欧美日韩不卡在线| 亚洲人成人一区二区在线观看| 香蕉久久a毛片| 裸体一区二区| 免播放器亚洲| 欧美一区二区三区在线免费观看| 99在线精品观看| 亚洲人在线视频| 亚洲午夜国产成人av电影男同| 欧美 日韩 国产一区二区在线视频| 欧美在线国产精品| 亚洲国产精品久久人人爱蜜臀| 欧美a级片网| 亚洲福利视频免费观看| 久久婷婷激情| 久久综合狠狠综合久久综青草| 亚洲激情成人网| 欧美国产视频一区二区| 亚洲欧美精品suv| 欧美精品免费在线观看| 免费高清在线视频一区·| 欧美激情综合网| 国产精品看片你懂得| 国产精品羞羞答答| 在线精品视频一区二区三四| 亚洲一区网站| 国产亚洲综合性久久久影院| 久久综合狠狠综合久久综青草| 亚洲精品免费一二三区| 日韩视频在线你懂得| 欧美亚洲自偷自偷| 亚洲影视九九影院在线观看| 久久久91精品国产一区二区三区| 蜜桃伊人久久| 欧美视频一区在线观看| 一区二区三区无毛| 亚洲欧美日韩精品一区二区| 国产日产亚洲精品系列| 亚洲七七久久综合桃花剧情介绍| 亚洲一区视频在线观看视频| 国产精品久久久久久久久免费樱桃| 亚洲一区二区三区视频播放| 极品尤物久久久av免费看| 美女黄网久久| 国产精品一区免费在线观看| 久久激情综合网| 99成人在线| 在线中文字幕日韩| 国产精品成人在线| 亚洲高清不卡| 国产精品久久久爽爽爽麻豆色哟哟| 午夜日本精品| 欧美日本韩国一区| 亚洲欧洲日本一区二区三区| 久久美女艺术照精彩视频福利播放| 国产精品久久久久久一区二区三区| 美玉足脚交一区二区三区图片| 欧美大片va欧美在线播放| 欧美巨乳在线观看| 久久国产乱子精品免费女| 亚洲精品网址在线观看| 国产精品久久久久久亚洲毛片| 狠狠色综合一区二区| 欧美国产免费| 亚洲国产精品传媒在线观看| 久久久久久久999| 制服丝袜亚洲播放| 亚洲欧美日韩久久精品| 亚洲色在线视频| 欧美日韩精品在线播放| 最新国产拍偷乱拍精品| 国产午夜精品一区二区三区视频| 国产日产精品一区二区三区四区的观看方式| 国产亚洲综合性久久久影院| 国产亚洲人成a一在线v站| 99国产精品久久久久久久成人热| 在线观看成人小视频| 国产日产亚洲精品系列| 午夜欧美精品久久久久久久| 久久精品日韩| 国产精品人人爽人人做我的可爱| 国产欧美日本一区二区三区| 欧美中文字幕精品| 亚洲伦理精品| 久久精品久久99精品久久| 午夜在线一区| 欧美中文在线免费| 亚洲在线观看| 久久久亚洲高清| 99re6热在线精品视频播放速度| 欧美片在线观看| 久久婷婷麻豆| 美女精品在线观看| 亚洲一区二区三区精品在线观看| 亚洲精品一区二区三区99| 久久久久国色av免费看影院| 欧美久久综合|