輔導(dǎo)案例-CS?4320/5320

CS 4320/5320 - Homework 1

Your task is to analyze a data set of your choice with SQL queries. Based on that analysis, you are expected to submit a small report (two pages), showing the queries and the query results.

You are free to select any structured data set you are interested in. For instance, you may download data from Kaggle (www.kaggle.com) or you may generate data yourself (using the commands for creating and filling tables we saw in Lecture 2). For executing your queries, you may use a local PostgreSQL installation or you may use the DB fiddle Web site (www.db-fiddle.com) which does not require local setup. If choosing the latter option, please select PostgreSQL 12 as the database system (left upper corner of Web site).

Your submission must contain six SQL queries with associated result tables. In your report, only report the first three result rows for each query to remain within space constraints.

Alternatively, you may choose to represent the result of queries with numerical columns as a plot for better readability (not required). Each query must be accompanied by a text description that describes the semantics of the query precisely (typically, one or two sentences per query are sufficient).

Your grade (out of 120 points) will be calculate as follows:

? You receive 10 points per query for correct SQL syntax and for an accurate text description of the query's semantics.

? You receive 10 points if at least one of your queries uses a join operation.

? You receive 10 points if at least one of your queries uses a group by operation.

? You receive 10 points if at least two of your queries use nested queries.

? You receive 10 points if at least one of your queries uses an aggregation function.

? You receive 10 points if at least one of your queries uses a having clause.

? You receive 10 points if at least one of your queries uses an outer join.

In order to obtain full points for query diversity (i.e.., points for using specific SQL features), you must use those features in a "reasonable manner"

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末赃蛛,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子羽历,更是在濱河造成了極大的恐慌焊虏,老刑警劉巖,帶你破解...
    沈念sama閱讀 216,997評(píng)論 6 502
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件秕磷,死亡現(xiàn)場(chǎng)離奇詭異诵闭,居然都是意外死亡,警方通過(guò)查閱死者的電腦和手機(jī)澎嚣,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,603評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門疏尿,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人易桃,你說(shuō)我怎么就攤上這事褥琐。” “怎么了晤郑?”我有些...
    開封第一講書人閱讀 163,359評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵敌呈,是天一觀的道長(zhǎng)贸宏。 經(jīng)常有香客問(wèn)我,道長(zhǎng)磕洪,這世上最難降的妖魔是什么吭练? 我笑而不...
    開封第一講書人閱讀 58,309評(píng)論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮析显,結(jié)果婚禮上鲫咽,老公的妹妹穿的比我還像新娘。我一直安慰自己谷异,他們只是感情好分尸,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,346評(píng)論 6 390
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著歹嘹,像睡著了一般箩绍。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上荞下,一...
    開封第一講書人閱讀 51,258評(píng)論 1 300
  • 那天伶选,我揣著相機(jī)與錄音,去河邊找鬼尖昏。 笑死,一個(gè)胖子當(dāng)著我的面吹牛构资,可吹牛的內(nèi)容都是我干的抽诉。 我是一名探鬼主播,決...
    沈念sama閱讀 40,122評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼吐绵,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼迹淌!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起己单,我...
    開封第一講書人閱讀 38,970評(píng)論 0 275
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤唉窃,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后纹笼,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體纹份,經(jīng)...
    沈念sama閱讀 45,403評(píng)論 1 313
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,596評(píng)論 3 334
  • 正文 我和宋清朗相戀三年廷痘,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了蔓涧。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,769評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡笋额,死狀恐怖元暴,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情兄猩,我是刑警寧澤茉盏,帶...
    沈念sama閱讀 35,464評(píng)論 5 344
  • 正文 年R本政府宣布鉴未,位于F島的核電站,受9級(jí)特大地震影響鸠姨,放射性物質(zhì)發(fā)生泄漏铜秆。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,075評(píng)論 3 327
  • 文/蒙蒙 一享怀、第九天 我趴在偏房一處隱蔽的房頂上張望羽峰。 院中可真熱鬧,春花似錦添瓷、人聲如沸梅屉。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,705評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)坯汤。三九已至,卻和暖如春搀愧,著一層夾襖步出監(jiān)牢的瞬間惰聂,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,848評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工咱筛, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留搓幌,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 47,831評(píng)論 2 370
  • 正文 我出身青樓迅箩,卻偏偏與公主長(zhǎng)得像溉愁,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子饲趋,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,678評(píng)論 2 354