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

  Write a program to calculate the tax of an employee

Write a program to calculate the tax of an employee whose employee number is input from the keyboard. Display an appropriate error message if the data does not exist in the Emp table.

  Describe the importance of using sub queries in a database

Extracting and interpreting data can be very valuable to an organization. Describe the importance of using sub queries in a database system.

  Discuss about the database security

Discuss about the database security.We will focus three topics for this conference:Inference in ordinary databases or statistical databases,database privacy (through encryption),andcloud security.

  Compose conceptual data modeling techniques

Explain the fundamentals of how data is physically stored and accessed and compose conceptual data modeling techniques that capture information requirements - design a relational database so that it is at least in 3NF.

  Discuss which dbms your program is going to use

Before you begin, you need to discuss which database management system your program is going to use. The Web service has database connection ability.

  Decompose the relation into a set of 3NF relations

Draw a dependency diagram to show the functional dependencies in the relation and Decompose the relation into a set of 3NF relations

  What new integrity constraint would you use in each of table

What new integrity constraints would you use in each of these tables? Explain how your constraints would improve queries on the tables.

  Problem related pseudocode for a game application

Create the pseudocode for a game application that contains an array of five (5) multiple-choice questions related to your favorite hobby. Each question contains four answer choices - A..., B..., C..., D...

  Olivias mountain adventure store

Visual Studio Express to build a Web-site with Access database - Olivias Mountain Adventure Store (OMAS)

  Database implementation in mysql

After receiving 21 different setups, the management of Oak Creek Stadium has decided on the attached ER diagram and instance tables for the development of a database to keep track of its operations.

  Provide a dynamic view of your supply chain

In your role as the database administrator for X-Tex, a small but successful company that designs and manufactures high tech fabrics, you have been asked to help optimize a query that will provide a dynamic view of your supply chain

  Design a data model for a given scenario

CN5101 -design and implement a realistic database system and develop a range of SQL queries based on the case study below. For the deliverables c, d & e enclose the necessary screenshots without fail.

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