Draw a query tree for the given relational algebra query

Assignment Help Database Management System
Reference no: EM132230588

Question: 1. Compare RAID level 1 and RAID level 5 on the basis of following parameters.

a. Fault Tolerance

b. Performance in terms of read and write operations

c. Suitable application types

2. A file has 40,000 Student records of fixed-length. Consider a disk with block size B=512 bytes. A block pointer is 8 bytes long and a record pointer is 7 bytes long. Each record has the following fields:

Attributes

Size (in bytes)

StudentID

9

Name

30

Sex

1

CourseMajor

10

Phone

9

Address

30

DoB

8

Status

3

a. Calculate the record size R in bytes.

b. Calculate the blocking factor bft and the number of files blocks b assuming an unspanned organization.

c. Suppose the file is ordered by the key field StudentID and we want to construct a primary index on it. Calculate the index blocking factor bft_i.

3. Consider following relational database schema and translate the queries ‘a' and ‘b' into relational algebra expressions

Teacher(ID, Name, Designation, Phone, Address)

Course(CourseCode, CourseName, CreditHour)

Taught(TeacherID, CourseCode, Semester)

a. SELECT Name, Address FROM Teacher, Taught WHERE Teacher.ID=Taught.TeacherID and CourseCode='IT344'

b. SELECT CourseName FROM Course, Taught WHERE Course.CourseCode=Taught.CourseCode and TeacherID=200

4. Draw a query tree for the following relational algebra query.

πsid, sname((σage="25"(σbid=bid(B x σsid=sid)S x R)))) where:

S represents Students (sid, sname, age, email)

B represents Books (bid, bname, auther, edition)

R represents Reserves (sid, bid, start day, end day)

Reference no: EM132230588

Questions Cloud

Is your approach to software evolution comprehensive : COMP 3520 For the third assignment, you will demonstrate your understanding of software evolution. Using your start-up company from the first assignment.
Write a brief essay describing the laws : Using the Web or other resources, find out what California states,laws areregarding cyberstalking. Write a brief essay describing those laws.
Create a flowchart to represent the push and pop operations : Create a flowchart to represent the Push and Pop operations for a Stack based on a linked list data structure. Create a flowchart to represent the Enqueue.
Disussion about the web technologies : There are many new trends when referring to web technologies. One big trend that is being used in huge companies like IBM and Amazon is blockchain technology.
Draw a query tree for the given relational algebra query : IT344 Draw a query tree for the following relational algebra query. psid, sname((sage="25"(sbid=bid(B x ssid=sid)S x R)))) where.
Discuss the importance of abuse cases : Software is developed using 'use cases.' Use cases are in place to describe how the software under development interacts with a user or another software product
Write response on technologies of the modern web : One of the more creepy and invasive technologies of the modern web is User Behavior Tracking. It is an amazing way for websites get a general idea.
Describe use case for implementing edge computing solutions : Describe one use case for implementing Edge Computing solutions. For example, a smart fridge that sends out information about its temperature.
Explain the concept of edge computing : Explain the concept of Edge Computing. Describe the main advantages of Edge and explain how this technology is related to Cloud Computing.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd