加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代寫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號線
  • 短信驗證碼 目錄網 排行網

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

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

    久久精品国产亚洲aⅴ| 蜜桃一区二区三区| 99精品久久久| 一本色道久久综合亚洲精品不| 日韩电影免费在线观看网站| 欧美激情福利| 国产精品成人一区二区不卡| 亚洲国产综合在线看不卡| 奇米亚洲欧美| 麻豆91在线播放免费| 亚洲深夜视频| 天天揉久久久久亚洲精品| 精品国产鲁一鲁****| 在线看片一区| 国产精品久久乐| 伊人成综合网站| aa级大片欧美三级| 99免费精品| 国产精品白丝av嫩草影院| 国产午夜精品一区在线观看| 国产日韩欧美高清免费| 黑人精品一区| 欧亚一区二区| 日韩高清一级| 久久久精品国产**网站| 亚州欧美在线| 日韩一区欧美| 国产社区精品视频| 午夜在线精品偷拍| 亚洲成人一区| 国产高清欧美| 欧美va天堂| 天堂日韩电影| 国产乱人伦精品一区| 三级欧美日韩| 日韩精品免费视频一区二区三区| 久久男人av| 亚洲深深色噜噜狠狠爱网站| 久久中文在线| 99精品国产在热久久婷婷| 欧美天堂在线| 涩涩涩久久久成人精品| 成人国产精品| 日本国产一区| 高清欧美日韩| 美女视频一区二区三区| 成人精品高清在线视频| 国内精品伊人| 国产九九精品| 在线免费高清一区二区三区| 亚洲国产片色| 欧美精品国产| 综合久草视频| 粉嫩av国产一区二区三区| 国产videos久久| 日韩成人一级大片| 视频二区欧美| 欧美成人一区在线观看| 久久久精品日韩| 欧美日韩性在线观看| 亚洲天堂激情| 亚洲视频大全| sm久久捆绑调教精品一区| 欧美成人h版| 久久女人天堂| 欧美极品一区二区三区| 91麻豆精品一二三区在线| 欧美成人精品一级| 久久丁香四色| 久久青草久久| 一区视频在线| 91青青国产在线观看精品| 天堂√8在线中文| 久久天天久久| 国产精品777777在线播放 | 亚洲日本黄色| 国产一区二区三区精品在线观看| 日本天堂一区| 欧美一区自拍| 亚洲一区视频| 男人av在线播放| 日本视频中文字幕一区二区三区| 国产aⅴ精品一区二区三区久久| 偷拍自拍亚洲色图| 国产精品香蕉| 91久久黄色| 天天免费亚洲黑人免费| 亚洲精品少妇| 国产欧美日韩在线一区二区| 国产精品白丝一区二区三区| 美女毛片一区二区三区四区| 亚洲欧美日韩国产| 99精品在免费线偷拍| 91麻豆精品国产91久久久更新资源速度超快 | 国产探花在线精品| 欧美交a欧美精品喷水| 免费观看不卡av| 中文字幕在线看片| 欧美激情1区| 一区二区三区在线资源| 影音国产精品| 天堂av在线网| 欧美日本不卡| 久久久久99| 97精品97| 国产美女视频一区二区| 久久香蕉国产| 日韩高清欧美| 伊人亚洲精品| 99久精品视频在线观看视频| 视频在线不卡免费观看| 亚洲三级毛片| 99tv成人| 三级在线观看视频| 欧美女王vk| 一本久道久久综合婷婷鲸鱼| 99久久久国产精品免费调教网站| 亚洲深夜福利在线观看| 9久re热视频在线精品| 久久国内精品视频| 欧美美女黄色| 樱桃视频成人在线观看| 国产精品免费不| 国产偷自视频区视频一区二区| 欧美淫片网站| 精品国产一区二区三区av片| 狼人综合视频| 色综合狠狠操| 在线精品一区二区| 欧美午夜精彩| 久久天天久久| 牲欧美videos精品| 99久久婷婷国产综合精品首页| 久久伦理中文字幕| 四虎成人av| 久久综合偷偷噜噜噜色| 久久国产99| 国产一区二区精品久| 亚洲欧美不卡| 欧美精品三级在线| 国产亚洲毛片在线| 欧美成人精品午夜一区二区| 亚洲精品二区三区| 日本欧美大码aⅴ在线播放| 免费成人av| 日本美女一区二区| 在线亚洲成人| 电影91久久久| 色97色成人| 亚洲超碰在线观看| 亚洲成人看片| 国产99亚洲| 亚洲毛片一区| 久久性天堂网| 日本少妇精品亚洲第一区| 天堂av在线网| 久久久777| 另类的小说在线视频另类成人小视频在线| 亚洲天堂男人| 亚洲午夜剧场| 91影院成人| 成人中文在线| 日本欧美加勒比视频| 国产精品普通话对白| 日韩系列在线| 91超碰碰碰碰久久久久久综合| 久久中文字幕av一区二区不卡| 青草国产精品久久久久久| 在线亚洲国产精品网站| 日韩电影在线免费看| 欧美精品资源| 亚洲国产日韩欧美在线| 国产一区二区欧美| yw.尤物在线精品视频| 欧美午夜精彩| 国产精品一区二区av日韩在线| 在线免费av资源| 欧美一区2区| 国产亚洲久久| 国产91在线精品| 亚洲在线网站| 国产精品久久久久久久久久白浆| 日韩精品欧美成人高清一区二区| 亚洲欧美日韩国产| 日韩成人免费电影| 99久热这里只有精品视频免费观看| 蜜臀av一区二区| 奇米777国产一区国产二区| 亚洲精品乱码久久久久久蜜桃麻豆| 久久香蕉精品| 久久性感美女视频| 亚洲va久久久噜噜噜久久| 国产精品成人国产| 亚洲欧美久久久| 91精品国产91久久久久久密臀| 国产精品片aa在线观看| 卡一卡二国产精品| 久久久男人天堂| 影音国产精品| 色婷婷精品视频|