日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              最新日韩av| 久久激情婷婷| 国产三级欧美三级日产三级99| 午夜在线一区二区| 亚洲精品1区2区| 国产日韩一区在线| 欧美日本在线观看| 久久久www成人免费无遮挡大片| 日韩亚洲欧美一区| 在线电影国产精品| 国产无一区二区| 国产精品伦子伦免费视频| 欧美激情精品久久久| 欧美永久精品| 亚洲免费在线视频一区 二区| 亚洲国产欧美日韩精品| 好看的日韩视频| 国产美女扒开尿口久久久| 欧美日韩一区二区国产| 能在线观看的日韩av| 久久蜜桃资源一区二区老牛| 午夜精品久久久久久久99水蜜桃| 一本色道久久综合亚洲二区三区 | 欧美专区在线观看一区| 亚洲午夜激情在线| 一区二区电影免费观看| 亚洲人成在线观看一区二区| 一区在线视频观看| 韩日精品视频一区| 好看的亚洲午夜视频在线| 国产亚洲观看| 国内精品久久久久伊人av| 国产伦一区二区三区色一情| 国产嫩草一区二区三区在线观看| 欧美性色综合| 国产免费观看久久| 国产日韩欧美不卡| 国产香蕉97碰碰久久人人| 国产欧美一区二区白浆黑人| 国产日本精品| 国产一区二区三区最好精华液| 国产麻豆综合| 合欧美一区二区三区| 91久久在线视频| 99综合视频| 亚洲综合色噜噜狠狠| 欧美一区深夜视频| 久久青草久久| 欧美精品在欧美一区二区少妇| 欧美精品精品一区| 国产精品毛片高清在线完整版| 国产精品久久久久久久久果冻传媒 | 久久精品国产99国产精品澳门| 久久精品免费播放| 欧美日韩a区| 国产精品五区| 最新69国产成人精品视频免费| 亚洲精选在线观看| 欧美一区二区精品在线| 男人的天堂亚洲在线| 欧美视频日韩视频在线观看| 国产亚洲综合精品| 99av国产精品欲麻豆| 午夜精品999| 欧美激情第3页| 国产日韩欧美二区| 99国产精品99久久久久久| 小黄鸭精品aⅴ导航网站入口| 欧美aⅴ99久久黑人专区| 国产精品剧情在线亚洲| 在线观看视频一区二区欧美日韩| 在线亚洲观看| 农村妇女精品| 国产视频一区在线| 一本色道久久88综合日韩精品| 亚洲一区三区在线观看| 久久一区二区三区国产精品| 国产精品亚洲综合一区在线观看| 亚洲精华国产欧美| 欧美一区二区三区视频在线 | 欧美国产先锋| 国户精品久久久久久久久久久不卡| 亚洲伦理精品| 久久综合网络一区二区| 国产区精品在线观看| 在线视频亚洲| 欧美日韩亚洲一区二区三区在线观看| 激情丁香综合| 欧美在线高清视频| 国产欧美日韩一区| 亚洲欧美激情视频| 欧美日韩精品欧美日韩精品| 亚洲人成7777| 麻豆九一精品爱看视频在线观看免费 | 亚洲欧美美女| 国产精品欧美日韩久久| 亚洲性色视频| 国产精品美女久久久久久久| 中国成人黄色视屏| 国产精品扒开腿做爽爽爽软件| 亚洲免费久久| 欧美视频一区二区| 亚洲一区二区精品在线| 欧美色中文字幕| 中日韩在线视频| 久久久一区二区| 国内揄拍国内精品少妇国语| 午夜精品电影| 国产在线高清精品| 久久精品免费观看| 激情欧美国产欧美| 欧美大片va欧美在线播放| 亚洲第一在线综合网站| 欧美黑人多人双交| 中文在线一区| 国产欧美va欧美va香蕉在| 欧美在线视频二区| 精品动漫3d一区二区三区免费版 | 久久一区中文字幕| 亚洲精品久久久一区二区三区| 欧美日韩一卡| 久久久久亚洲综合| 亚洲人成久久| 国产精品欧美一区二区三区奶水| 午夜精品久久久久久| 伊人精品久久久久7777| 欧美激情精品久久久久| 午夜伦理片一区| 91久久精品www人人做人人爽| 国产精品国产馆在线真实露脸 | 国产精品一区视频| 亚洲欧美国产77777| 国产视频一区二区三区在线观看| 久久综合久久综合这里只有精品| 亚洲国产天堂久久综合网| 国产精品久久久久毛片大屁完整版| 欧美一区二区三区视频免费播放| 亚洲黄一区二区三区| 国产精品三级视频| 欧美成人免费小视频| 亚欧成人精品| 99视频在线观看一区三区| 国产一区二区你懂的| 欧美日韩国产首页在线观看| 欧美一区二区三区在线观看| 亚洲精品午夜精品| 国产一区二区三区精品欧美日韩一区二区三区 | 久久午夜色播影院免费高清| 国内一区二区三区| 久久精品30| 在线一区二区三区做爰视频网站 | 亚洲女人小视频在线观看| 亚洲成人在线视频播放| 国产精品亚洲综合天堂夜夜| 欧美成人综合在线| 久久久久久久一区| 午夜视频一区| 在线一区二区三区四区| 亚洲国产日韩精品| 雨宫琴音一区二区在线| 国产欧美精品一区二区三区介绍| 欧美视频精品在线| 欧美精品三区| 欧美国产日本| 久久久伊人欧美| 久久久久久久国产| 久久久91精品国产| 久久av资源网| 久久国产精品99久久久久久老狼| 亚洲一区亚洲| 欧美亚洲三级| 欧美一区二区私人影院日本| 亚洲私人影院| 欧美一级二区| 久久精品观看| 噜噜噜91成人网| 嫩草国产精品入口| 欧美成人精品在线视频| 免费观看在线综合色| 欧美精品久久久久久久免费观看 | 99精品热6080yy久久| 一本到12不卡视频在线dvd| 日韩一二三区视频| 亚洲视频成人| 午夜天堂精品久久久久| 亚洲欧美日韩国产成人| 欧美一区二区三区在线播放| 欧美一区二区私人影院日本| 久久视频这里只有精品| 欧美va天堂va视频va在线| 久久久亚洲人| 久久综合久久久| 美玉足脚交一区二区三区图片| 欧美大片在线观看一区二区| 欧美福利视频| 国产精品女主播在线观看| 国产美女一区二区| 国产一区二区精品在线观看| 国产亚洲福利| 国产午夜一区二区三区|