免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300

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

    免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300
    国产福利电影一区二区三区| 91浏览器入口在线观看| 国产亚洲一本大道中文在线| 国产乱妇无码大片在线观看| 欧美国产成人在线| 99视频国产精品| 一区二区三区中文免费| 欧美日韩午夜影院| 蜜臀av一区二区在线观看| 精品1区2区在线观看| 国产a级毛片一区| 亚洲精品视频在线观看网站| 欧美性做爰猛烈叫床潮| 奇米影视在线99精品| 久久久美女艺术照精彩视频福利播放| 国产成人超碰人人澡人人澡| 亚洲欧洲av在线| 欧美日韩一区精品| 精品一区二区免费| 国产精品美女久久久久aⅴ| 色综合久久久久| 丝袜美腿一区二区三区| 久久亚洲二区三区| 91麻豆免费视频| 日本午夜一区二区| 国产欧美一区在线| 一区二区三区在线高清| 欧美日韩一二三区| 国产一区二区精品在线观看| 亚洲欧洲成人自拍| 欧美一区二区视频观看视频| 国产精品99久久久久久有的能看| 亚洲欧洲日韩在线| 在线不卡免费欧美| 成人午夜在线播放| 亚洲超碰97人人做人人爱| 亚洲精品在线免费观看视频| 91影视在线播放| 免费欧美日韩国产三级电影| 国产精品私人影院| 欧美美女视频在线观看| 国产69精品久久99不卡| 香蕉成人啪国产精品视频综合网 | 成人免费观看av| 午夜视频一区在线观看| 日本一区二区电影| 欧美日本免费一区二区三区| 国产一区视频在线看| 一区二区理论电影在线观看| 久久午夜色播影院免费高清| 在线观看亚洲一区| 国产福利91精品一区二区三区| 亚洲一区二区三区四区中文字幕| 久久综合久久鬼色| 欧美日韩国产美女| 成人国产亚洲欧美成人综合网| 日精品一区二区| 自拍av一区二区三区| 精品国产乱码久久久久久1区2区| 色婷婷综合久久久| 国产美女精品人人做人人爽| 亚洲大片在线观看| 综合欧美一区二区三区| 精品理论电影在线观看| 欧美午夜精品久久久久久超碰| 成人综合日日夜夜| 久久激情五月婷婷| 亚洲午夜在线视频| 国产精品护士白丝一区av| 精品剧情v国产在线观看在线| 欧美视频日韩视频| av电影在线观看一区| 狠狠色综合日日| 日韩国产精品久久久久久亚洲| 中文字幕在线免费不卡| 久久久久久久久蜜桃| 3atv一区二区三区| 欧美视频日韩视频在线观看| av成人老司机| 国产.精品.日韩.另类.中文.在线.播放| 日本中文一区二区三区| 亚洲主播在线观看| 亚洲色图一区二区三区| 欧美国产乱子伦| 久久一日本道色综合| 日韩情涩欧美日韩视频| 欧美剧情电影在线观看完整版免费励志电影 | 91伊人久久大香线蕉| 国产大片一区二区| 激情综合网最新| 美女精品一区二区| 日韩精彩视频在线观看| 亚洲www啪成人一区二区麻豆| 亚洲欧美日韩系列| 亚洲色图制服诱惑| 亚洲欧洲日产国产综合网| 国产一区二区三区四区五区美女| 亚洲成av人片一区二区梦乃| 亚洲综合精品久久| 一区二区三区四区视频精品免费| 中文字幕一区二区在线播放| 国产日韩欧美不卡| 国产色产综合色产在线视频| 久久久久久久综合色一本| 精品国产一区a| 欧美成人国产一区二区| 精品日韩成人av| 精品免费视频.| 久久美女艺术照精彩视频福利播放| 欧美成人一区二区| 精品国产成人在线影院| 精品国精品自拍自在线| www成人在线观看| 久久免费美女视频| 欧美国产视频在线| 国产精品二三区| 亚洲欧美国产三级| 一区二区三区 在线观看视频| 一区二区三区视频在线看| 亚洲一区二区精品久久av| 亚洲成年人网站在线观看| 日韩精品高清不卡| 久久国产日韩欧美精品| 国产一区二区三区高清播放| 国产激情一区二区三区四区| 高清不卡一区二区| 91麻豆精品在线观看| 欧美在线一二三| 69精品人人人人| 欧美mv日韩mv国产网站| 久久久久国产精品厨房| 中文字幕中文在线不卡住| 亚洲六月丁香色婷婷综合久久| 亚洲一区在线视频| 日本v片在线高清不卡在线观看| 蜜桃视频在线一区| 国产福利一区二区| 99久久国产免费看| 欧美三级午夜理伦三级中视频| 在线播放国产精品二区一二区四区| 日韩三级av在线播放| 国产欧美一区二区精品秋霞影院| 中文字幕一区二区日韩精品绯色| 一区二区三区免费网站| 日本最新不卡在线| 国产精品一卡二| 色综合久久综合网97色综合| 欧美日本一区二区三区四区| 欧美精品一区二区久久久| 国产精品妹子av| 亚洲国产裸拍裸体视频在线观看乱了| 日本少妇一区二区| 国产福利一区在线| 欧美在线高清视频| 精品日本一线二线三线不卡| 国产精品伦理在线| 五月激情综合婷婷| 国产精品66部| 在线区一区二视频| 欧美不卡视频一区| 中文字幕在线观看不卡| 日韩专区中文字幕一区二区| 国产美女视频91| 欧美性感一类影片在线播放| 精品国产一区二区亚洲人成毛片| 中文字幕在线播放不卡一区| 午夜日韩在线观看| 国产成人精品免费在线| 欧美日韩国产高清一区二区| 久久久天堂av| 午夜天堂影视香蕉久久| 国产成人免费视频网站| 欧美无乱码久久久免费午夜一区| 精品国产一区二区国模嫣然| 亚洲精品国产无套在线观| 久久99久久99小草精品免视看| 99精品黄色片免费大全| 日韩欧美综合一区| 一区二区三区欧美日| 国产精品一二三四区| 欧美日韩国产另类一区| 国产精品天美传媒| 蜜臀久久久99精品久久久久久| 91在线精品一区二区| 精品国产不卡一区二区三区| 亚洲综合色噜噜狠狠| 国产乱人伦偷精品视频免下载| 欧美午夜在线一二页| 国产欧美一区二区三区在线看蜜臀 | 欧美久久高跟鞋激| 国产精品福利一区| 久久不见久久见免费视频7| 在线观看欧美黄色| 中文字幕不卡在线观看| 日本不卡在线视频| 色吊一区二区三区| 欧美激情一区不卡| 久久爱www久久做| 欧美精品v日韩精品v韩国精品v| 亚洲欧美在线高清|