久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    久久久久久久少妇| 屁屁影院ccyy国产第一页| 五月婷婷丁香色| 国产人妻777人伦精品hd| 第一区免费在线观看| 日本一极黄色片| 男人添女人下面高潮视频| www国产免费| 欧美h视频在线观看| www.超碰97.com| 欧美一级特黄a| 91看片就是不一样| 国产又黄又大又粗视频| 午夜免费福利小电影| 精品无码av无码免费专区| 香蕉视频色在线观看| 伊人网在线综合| 校园春色 亚洲色图| www.日本xxxx| 天天影视综合色| youjizzxxxx18| 手机看片福利日韩| 992tv人人草| 轻点好疼好大好爽视频| mm131午夜| 久久久99精品视频| 先锋影音男人资源| 一级网站在线观看| 欧美日韩理论片| 国产免费中文字幕| 亚洲理论中文字幕| 手机在线视频一区| 操bbb操bbb| 免费一级淫片aaa片毛片a级| 日本香蕉视频在线观看| 无码av天堂一区二区三区| 日本欧美视频在线观看| 成人免费aaa| 99视频免费播放| 免费成年人高清视频| 高潮一区二区三区| 成人在线观看www| 青草网在线观看| 欧美精品自拍视频| 日本成人中文字幕在线| 日本77777| 大片在线观看网站免费收看| 国产精品久久中文字幕| 波多野结衣家庭教师视频| 在线观看高清免费视频| 小说区视频区图片区| 黄色三级中文字幕| 日韩视频第二页| 天天操狠狠操夜夜操| 大地资源第二页在线观看高清版| 台湾无码一区二区| 国产aaa一级片| 久久久精品视频国产| 成人免费在线视频播放| 国产欧美高清在线| 久久6免费视频| 可以在线看的av网站| 日本新janpanese乱熟| 一本之道在线视频| 2022亚洲天堂| 男女啪啪的视频| 欧美成人精品欧美一级乱| 亚洲高清av一区二区三区| 91免费黄视频| 亚洲一区二区在线视频观看| 日本在线xxx| 三年中文高清在线观看第6集| 精品少妇在线视频| 超碰成人在线播放| 五十路熟女丰满大屁股| 在线能看的av网站| 国产在线播放观看| 欧美成人手机在线视频| 免费黄色日本网站| 麻豆映画在线观看| 国产精品久久久毛片| 青青青青草视频| 国产农村妇女精品久久| 成人午夜视频免费在线观看| 超薄肉色丝袜足j调教99| 亚洲天堂av线| 九一国产精品视频| 激情图片qvod| 天天爽夜夜爽一区二区三区| 亚洲熟妇无码另类久久久| 午夜影院免费观看视频| 成年人免费大片| 国产免费黄色一级片| 日韩 国产 一区| 男人亚洲天堂网| 野外做受又硬又粗又大视频√| 99sesese| www.日日操| 国产网站免费在线观看| 永久免费网站视频在线观看| 亚洲精品www.| 乱子伦视频在线看| 成人免费观看cn| 大伊香蕉精品视频在线| 天天干天天操天天干天天操| 黄色三级视频在线| 日本在线视频www| 国产毛片视频网站| 屁屁影院ccyy国产第一页| 激情图片qvod| 午夜啪啪福利视频| 三级黄色片免费看| 污网站在线免费| 久久婷婷综合色| 亚洲xxxx2d动漫1| 成人在线观看a| 农村妇女精品一二区| 欧美 日韩 国产一区| 欧美国产激情视频| 久青草视频在线播放| 99re6这里有精品热视频| 免费观看中文字幕| 日本一二三四区视频| 成人亚洲免费视频| 久久久久久久久久毛片| 国产永久免费网站| 亚洲一区二区中文字幕在线观看| 激情五月俺来也| 亚洲 激情 在线| 91 在线视频观看| 九九九九九九九九| 国产成人强伦免费视频网站| 91香蕉视频免费看| 福利网在线观看| 久久av高潮av| 成人黄色大片网站| 无码人妻丰满熟妇区96| www.国产区| 九色porny自拍| 91视频福利网| 久久这里只有精品8| www精品久久| 黄色片一级视频| 天堂一区在线观看| 天天做天天爱天天高潮| 激情六月天婷婷| 日本欧美黄色片| 国产精品无码一本二本三本色| 五月婷婷狠狠操| 欧美日韩理论片| 欧美激情亚洲天堂| 男人揉女人奶房视频60分| 无码人妻丰满熟妇区毛片| 9久久婷婷国产综合精品性色 | 嫩草影院国产精品| 天天摸天天舔天天操| 26uuu成人| 福利视频一区二区三区四区| 欧美牲交a欧美牲交aⅴ免费真| 精品免费国产一区二区| 做a视频在线观看| 国产在线观看欧美| 日本三级免费观看| 中文国产在线观看| 人妻少妇精品久久| 一区二区xxx| 超碰超碰超碰超碰超碰| 欧美二区在线视频| 日本中文字幕二区| 欧美日韩福利在线| 国产高潮免费视频| 国产在线xxxx| 国产精品久久a| 真人抽搐一进一出视频| 免费看污污网站| 777久久精品一区二区三区无码| 亚洲熟妇av一区二区三区漫画| 中文字幕亚洲乱码| 日韩av在线播放不卡| 看看黄色一级片| 国内精品在线观看视频| 亚洲免费av一区| 日韩在线视频在线观看| www亚洲国产| 日韩视频在线免费看| 国产a级黄色大片| 日本三级黄色网址| 国产免费黄色小视频| 久久6免费视频| 久久免费视频3| 精品国产三级a∨在线| 国产理论在线播放| 国产美女主播在线| 欧洲美女亚洲激情| 免费男同深夜夜行网站| 国产freexxxx性播放麻豆| 亚洲精品永久视频| 日本黄网站免费| 美脚丝袜脚交一区二区| 三级av免费看|