狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

CS 2550代做、SQL程序語言代寫

時間:2024-04-19  來源:  作者: 我要糾錯



CS 2550 – Principles of Database Systems (Spring 2024)
Dept. of Computer Science, University of Pittsburgh
Assignment #4: Query Processing & Optimization
Release: April 10, 2024 Due: 8:00PM, April 22, 2024
Goal
The goal of this assignment is to better understand the query evaluation process.
Description
The following is a fragment of the university database schema.
Employee (EmployeeID, First, Last, Gender, DOB, Address, Phone, SNO, Salary)
PK(EmployeeID)
FK(SNO) --> Studio(StudioNum)
Studio (StudioNum, StudioName, Manager, Budget)
PK(StudioNum)
FK(Manager) --> Employee(EmployeeID)
Movie (movieID, producedBy, title, Budget, filmedAt)
PK(movieID)
FK(producedBy) --> Studio(StudioNum)
Consider four possible organizations of the tables Employee(E)-Studio(S)-Movie(M):
1. Tables E, S and M are heap files & no access methods exist on any of them
2. Tables E and S are sorted files and M is a heap file & no access methods exist on any of them
3. Tables E, S and M are heap files & access methods (hashing) exist only on M
4. Table E is a sorted file and tables S and M are heap files & access methods exist on E and
M, one of which is hash and the other is index
Further assume the following statistics:
ˆ Available Cache Memory (CM) to be 22 pages.
ˆ Attributes belonging to the same table all have the same average size.
ˆ When using hash join, the smaller record will be the partitioning part.
ˆ The distribution of values for the attribute filmedAt in the table Movie is: 50% ’PGH’, 30%
’PHI’, and 20% ’NYC’.
ˆ Movie: r = 500, bfr = 5, BP rj = 100.
ˆ Studio: r = 250, bfr = 5, BDep = 50.
ˆ Employee: r = 1250, bfr = 5, BEmp = 250.
ˆ Note that r is the total number of tuples in a table, bfr is the blocking-factor, and B is the
total number of blocks of a table.
Questions [100 points]
Q1 [20 points] Produce the heuristic query evaluation tree of the following SQL statement assuming no access structures available, and describe in details how the evaluation of the query would
be:
SELECT S.StudioName, COUNT(M.movieID), SUM(M.Budget)
FROM EMPLOYEE AS E, Studio AS S, Movie AS M
WHERE M.producedBy = S.StudioNum AND E.SNO = S.StudioNum
GROUP BY S.StudioName
HAVING COUNT(E.EmployeeID) < 15;
State any additional assumptions. (Hint: some operators can be combined into a single algorithm).
Q2 [80 points] Consider the query evaluation tree as discussed in class of the following SQL
statement.
SELECT M.movieID, M.producedBy, E.First, E.Last, E.Gender
FROM Employee AS E, Studio AS S, Movie AS M
WHERE M.producedBy = S.StudioNum AND S.Manager = E.EmployeeID
AND M.filmedAt=‘PGH’;
Based on your pittID, you have two database organizations assigned to you from the above organizations in order to answer this question. For those two organizations, identify sub trees that
represent groups of operations which can be executed by a single algorithm. For each such sub tree,
there are potentially multiple methods that can be combined to implement it as a single algorithm.
Please provide the following:
ˆ The description of one such implementation (steps & data structures) out of all possible ones
for each of the above cases.
ˆ The I/O cost of your implementation at each level.
ˆ Compute the total I/O cost.
You are asked to answer the question for two database organizations, those are based on your
pittID, as follows:
ddh32, tiw81, yiy161, dhb51, yul251, sml153, nia135, dtk28:
You are required to do the first and second organizations only.
mas937, yux85, anp407, shk148, nat134, aba166, mod53, jeb386:
You are required to do the first and third organizations only.
aym50, bsp22, yuw328, shy158, btl26, shp184, jah292, tbt8:
You are required to do the first and fourth organizations only.
What & How to submit
ˆ You are required to submit exactly one PDF file under your pitt user name (e.g.,
pitt01.pdf). In addition to providing the answer, you are expected to: include your
name and pitt ID at the top of the PDF file.
ˆ After preparing your solution, submit your file (i.e., the prepared PDF) that contains
your solution by going to the class’ Gradescope by either navigating to the Gradescope
Homepage and selecting the course CS 2550 from the Course Dashboard or by clicking
the Gradescope Navigation option under our course Canvas page.
ˆ You must submit your assignment before the due date (8:00 PM, Apr. 22, 2024).
There are no late submissions.
ˆ Note that you are required to use a graph tool (such as MS-Word, MS Powerpoint, MS
Visio, idraw, draw.io, etc.) to generate your diagrams and the text that explain them.
Handwritten/Hand-drawn diagrams and/or text will not be accepted/graded
and will receive a zero. Hand-written and digitized/scanned images will
receive a zero (including scanned, photos, or electronically drawn using a
smart pen submissions).
Academic Honesty
The work in this assignment is to be done independently. Discussions with other students on
the assignment should be limited to understanding the statement of the problem. Cheating
in any way, including giving your work to someone else will result in an F for the course and
a report to the appropriate University authority.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

標簽:

掃一掃在手機打開當前頁
  • 上一篇:COMP2003J代寫、代做Python/Java編程語言
  • 下一篇:KXO151代做、代寫Problem Solving設計編程
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

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

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    亚洲人成无码网站久久99热国产| 毛片毛片毛片毛| 波多野结衣激情| 日本成人xxx| 日韩精品在线播放视频| 成人在线观看www| 青青在线视频免费观看| 日韩精品一区在线视频| 国产97在线 | 亚洲| 亚洲精品乱码久久久久久自慰| 国产偷人视频免费| 麻豆md0077饥渴少妇| 一本久道综合色婷婷五月| 99re99热| 精品视频一区二区在线| 日韩伦理在线免费观看| 亚洲欧美另类动漫| 成人免费视频久久| 国产精品亚洲二区在线观看| 中文字幕在线观看第三页| 男人的天堂狠狠干| 午夜啪啪福利视频| 亚洲精品在线视频播放| 国产精品宾馆在线精品酒店| 久久久久久久高清| 免费在线观看亚洲视频| 日韩最新中文字幕| 国产精品国三级国产av| 久久99爱视频| 妞干网在线视频观看| 91亚洲免费视频| av一区二区三区免费观看| 国产又黄又猛又粗又爽的视频| 菠萝蜜视频在线观看入口| 国产又大又黄又猛| 50路60路老熟妇啪啪| www插插插无码视频网站| 色综合五月婷婷| www.污污视频| 亚洲日本黄色片| 手机免费av片| 亚洲精品视频导航| 国产无套内射久久久国产| 国产精品69久久久| 久草免费福利在线| 超碰成人免费在线| 男女激情无遮挡| 国产日韩一区二区在线观看| 亚洲一区二区三区av无码| 亚洲制服在线观看| 国产a级一级片| 日韩欧美国产综合在线| 免费在线观看视频a| 男人亚洲天堂网| 久热精品在线播放| 日韩av影视大全| 久久99中文字幕| 韩国日本在线视频| 做爰高潮hd色即是空| 无码熟妇人妻av在线电影| 97视频在线免费播放| 国产又黄又猛又粗又爽的视频| 波多野结衣国产精品| 国产精品www在线观看| 欧美视频第三页| 一本大道东京热无码aⅴ| 国产二区视频在线播放| 手机在线视频你懂的| www.日本在线播放| 91日韩视频在线观看| 日韩一级特黄毛片| 亚洲一区精品视频在线观看| 男人添女人下部高潮视频在观看| 蜜桃免费在线视频| 日本在线观看a| 久久久久久久香蕉| 天天干天天操天天干天天操| 欧美视频第一区| 国产精品宾馆在线精品酒店| 成人污网站在线观看| 污污的视频免费观看| 天天干天天爽天天射| 欧美精品色婷婷五月综合| 日韩伦理在线免费观看| 欧美爱爱视频网站| 亚洲综合伊人久久| 视频在线观看免费高清| 欧美精品成人网| 欧美变态另类刺激| 国产免费黄视频| 亚洲一区二区三区四区五区xx| 18岁网站在线观看| 美女喷白浆视频| gogogo高清免费观看在线视频| 免费激情视频在线观看| 毛葺葺老太做受视频| 中文字幕 日韩 欧美| 亚洲综合在线一区二区| 中文字幕第50页| 妺妺窝人体色www在线小说| 青青青在线播放| 国产精品久久久毛片| 婷婷视频在线播放| 熟妇人妻va精品中文字幕 | 亚洲一二三区av| www.51色.com| 我的公把我弄高潮了视频| 日本中文字幕片| 手机福利在线视频| 日韩中文字幕在线视频观看| 污污的视频免费| 日本欧美视频在线观看| 黄色永久免费网站| 美女日批免费视频| 九九热视频免费| 久久精品视频91| 分分操这里只有精品| 吴梦梦av在线| 手机av在线免费| 精品视频在线观看一区| 国产精品久久久久久久av福利| 国产69精品久久久久久久| 99精品一区二区三区的区别| 国产激情在线观看视频| 欧美在线观看www| 国产aaa免费视频| 日韩精品一区二区三区四| www.欧美激情.com| 中文字幕资源在线观看| 日本在线一二三区| 亚洲欧美视频二区| 8x8x成人免费视频| 91亚洲一区二区| 久久久成人精品一区二区三区 | 亚洲图片 自拍偷拍| 久久久精品视频国产| 热久久最新地址| 999在线观看视频| 亚洲爆乳无码专区| 天天干天天玩天天操| 五月天开心婷婷| 欧美另类videos| 国产精品333| 超碰超碰在线观看| 久久久无码中文字幕久...| 国产91porn| 日本一本二本在线观看| 蜜桃免费在线视频| www精品久久| av丝袜天堂网| 亚洲国产一二三精品无码| 人妻精品无码一区二区三区| 国产小视频精品| 国产一二三区在线播放| 亚洲爆乳无码专区| 女同性恋一区二区| 在线观看免费av网址| 国产尤物av一区二区三区| 欧美二区在线视频| 亚洲男人天堂2021| 美女网站免费观看视频| 992tv快乐视频| 日本成人xxx| 91福利免费观看| 别急慢慢来1978如如2| 国产高清精品在线观看| 国产精品久久成人免费观看| 9l视频白拍9色9l视频| 精品久久久久av| 国产精品wwwww| 日日鲁鲁鲁夜夜爽爽狠狠视频97 | 日本三日本三级少妇三级66| 亚洲精品第三页| 五月激情五月婷婷| 黄色小视频免费网站| 国产乱女淫av麻豆国产| 青青青在线视频免费观看| 一道本视频在线观看| wwww.国产| 国产精品夜夜夜爽张柏芝| 久久久久久久久久一区二区| 玖玖爱视频在线| 在线一区二区不卡| 黄色一级片网址| 老太脱裤让老头玩ⅹxxxx| 国产黄页在线观看| 一女被多男玩喷潮视频| www.色偷偷.com| 一级黄色高清视频| 成人在线观看你懂的| 九九热在线免费| 800av在线免费观看| 女人天堂av手机在线| 中文字幕在线视频一区二区三区| 午夜天堂在线视频| 人妻无码久久一区二区三区免费| 能在线观看的av网站| 国产爆乳无码一区二区麻豆| 久久综合色视频| 日本美女久久久|