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

  Create the star schema for the data warehouse

Include any SQL needed for the database, the DDL, the DML to manage the customer and employee rows, and the 3 SELECT statements.

  What strategic advantage kaiser gain from its ehr system

What troubles did Kaiser run into when it first tried to implement the EHR system? Is Kaiser's experience typical of leading-edge companies? If so, how?

  Design the star schema for any data mart you have identified

Design the star schema for any Data Marts you have identified, ensuring your Dimensions are conformed, primary and foreign keys are clearly labelled, and that your attributes are named using verbose textual descriptions.

  Design a query that will allow the finance department

Imagine that you have been hired as a consultant to assist in streamlining the data processing of an international based organization that sells high-end electronics. The organization has various departments such as payroll, human resources, finan..

  Analyze step that you would use in order to convert database

Describe the steps that you would use in order to convert database tables to the First Normal Form, the Second Normal Form, and the Third Normal Form.

  What is the difference between a database and a dbms

What is the difference between a database and a DBMS? What type of statements are used to INSERT Rows into a Table? DDL or DML?

  How to perform document classification using tools in weka

How to perform document classification using tools in WEKA

  What level of concurrency is best supported by mimd computer

Could someone please explain to me what are the three levels of concurrency in programs?

  Provision of organization data

Provision of organization data and access on an organizational website.

  Write a function checksmaller

Write a function 'Max' that takes an int array and the size of the array as input and returns the largest element of the array. The function should look like the following.

  Implicit cursor to print out the mid of manager of bob

Write an anonymous PL/SQL program to compute the sum of 1, 3, 5, 7, 9. You must use a loop -  implicit cursor to print out the MID of manager of Bob.

  Create database objects to track the construction projects

You will use a database template to enter data into the Events table. You will create a simple query, a form, and a report.

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