狠狠综合久久久久综合网址-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>
    国产精品无码一区二区在线| 国产婷婷一区二区三区| 国产二区视频在线播放| 欧美一级特黄aaa| 99爱视频在线| 永久免费看av| 日本77777| 激情五月亚洲色图| 无码粉嫩虎白一线天在线观看 | 在线观看岛国av| 日本一道本久久| 国产女人18毛片| 九九精品久久久| 欧美成人免费高清视频| youjizz.com在线观看| 欧美专区第二页| 日韩av片网站| 亚洲国产精品毛片av不卡在线| 日韩黄色片在线| 8x8x华人在线| 亚洲自拍第三页| 精品亚洲一区二区三区四区| aaaaaa亚洲| 丰满少妇被猛烈进入高清播放| av在线com| 7777在线视频| 亚洲精品在线网址| 亚洲涩涩在线观看| 欧美美女一级片| 天堂社区在线视频| 久久婷婷国产91天堂综合精品| 日韩欧美亚洲天堂| 免费 成 人 黄 色| www插插插无码视频网站| 国产女教师bbwbbwbbw| 黄色污污在线观看| 中文字幕第50页| 欧美三级午夜理伦三级老人| 在线无限看免费粉色视频| 日本肉体xxxx裸体xxx免费| 午夜视频你懂的| 中文字幕 91| 亚洲va在线va天堂va偷拍| 久久99爱视频| 亚欧精品在线视频| 免费久久久久久| 国产精品久久久久久久久电影网| 久久香蕉视频网站| 久操网在线观看| 国内外成人激情视频| 日韩精品一区二区三区不卡| 欧美日韩在线成人| www.日本一区| 成年人免费观看的视频| 精品无码av无码免费专区| www.好吊操| 亚洲精品乱码久久久久久自慰| 国产免费999| 亚洲欧美日韩不卡| 99re6这里有精品热视频| 丰满的少妇愉情hd高清果冻传媒 | 亚洲色图都市激情| 免费看黄在线看| 欧美综合在线观看视频| 91视频这里只有精品| 国产盗摄视频在线观看| 国产一级做a爰片久久毛片男| 成人在线观看毛片| 日韩人妻精品无码一区二区三区| caoporn超碰97| 激情在线观看视频| 一二三四视频社区在线| 天堂av在线网站| 国内外成人激情免费视频| 97成人在线观看视频| 国产又粗又长又爽又黄的视频| 吴梦梦av在线| 国产亚洲天堂网| 天天干天天色天天爽| 国产精品丝袜久久久久久消防器材| 久久久精品三级| 国产成人一二三区| 欧美黄色性生活| 青春草国产视频| 日韩成人精品视频在线观看| 毛片在线视频观看| 国产色视频在线播放| 久青草视频在线播放| jizz大全欧美jizzcom| 吴梦梦av在线| 手机在线免费观看毛片| 欧美国产视频一区| 日韩欧美国产片| 国产深夜男女无套内射| 亚洲色图欧美自拍| 成人中文字幕av| www.成年人视频| 亚洲网中文字幕| 日韩有码免费视频| 欧美中日韩在线| 亚洲高清视频免费| www日韩在线观看| 久久成人免费观看| 国产精品视频一二三四区| 不卡的在线视频| 欧美在线观看视频网站| 天天夜碰日日摸日日澡性色av| 最新视频 - x88av| 久久久久久久久久久久久久久国产| 97视频在线免费| 男人j进女人j| 午夜av中文字幕| 亚洲欧美日韩综合网| 欧美日韩在线成人| 久艹在线免费观看| 国产激情片在线观看| 亚洲一级片免费观看| 制服丝袜综合网| 免费涩涩18网站入口| 9久久9毛片又大又硬又粗| 久久在线中文字幕| 男人的天堂avav| www.日本久久| 色姑娘综合天天| 精产国品一二三区| 超碰在线超碰在线| 成人手机视频在线| 在线观看免费污视频| 91视频免费版污| 青草青青在线视频| 欧美激情视频免费看| 99色这里只有精品| 久久久久99精品成人片| 国产精品久久..4399| 国产精品久久国产| 福利视频一区二区三区四区| 激情成人开心网| 国产 日韩 欧美在线| 欧美日韩成人免费视频| 18岁网站在线观看| 国产成人精品无码播放| 欧美精品aaaa| 男人的天堂最新网址| 色偷偷中文字幕| 国产精品自拍合集| 日本香蕉视频在线观看| 成人免费观看cn| 毛片一区二区三区四区| www.色偷偷.com| 在线免费看v片| 伊人再见免费在线观看高清版 | 国产精品入口免费软件| 三级一区二区三区| 一级黄色片播放| 欧美一级视频免费看| 任你操这里只有精品| 天天摸天天舔天天操| 久久久天堂国产精品| 1024av视频| 国产成人黄色网址| 日本xxxxx18| 欧美日韩在线视频一区二区三区| 99草草国产熟女视频在线| theporn国产精品| 成年人看的毛片| 亚洲36d大奶网| 男人天堂a在线| 一级片视频免费观看| 欧洲精品视频在线| 18禁男女爽爽爽午夜网站免费| 中文字幕久久av| 黄页网站在线观看视频| 青青青在线视频免费观看| 男插女免费视频| 欧美三级午夜理伦三级| 91制片厂免费观看| 成人久久久久久久久| 亚洲国产欧美91| 精品国产成人av在线免| 亚洲国产精品女人| 国产精品-区区久久久狼| 免费不卡av网站| 欧美伦理视频在线观看| 久久久久久av无码免费网站下载| 亚洲男人天堂色| 草草视频在线免费观看| 中文字幕久久av| www.四虎成人| 日本黄色片一级片| 加勒比av中文字幕| 欧美牲交a欧美牲交aⅴ免费真| 男人的天堂成人| 美女少妇一区二区| 久久久999视频| 国产一区 在线播放| 中文字幕第22页| 丁香婷婷激情网| 大j8黑人w巨大888a片| 欧美黄网在线观看| 天天成人综合网|