Suppose we have a relation employees ssn name department

Assignment Help Database Management System
Reference no: EM13380038

Suppose we have a relation Employees (SSN, name, department, salary).

 

For each of the following queries, either write the query in relational algebra and explain informally why your answer works, or explain why it cannot be written in relational algebra.

 

You may use sequences of assignments or expression trees if you like. You may use only the following operators of relational algebra: union, intersection, difference, selection, projection, products, joins (theta and natural), renaming.

 

a) Find all department(s) with at least two employees of different names.

 

b) Find the department(s) with the most people.

 

c) Find the names of employee(s) with the highest salary.

 

d) For each employee, find their name and their supervisor's name.

 

e) Find the supervisor with the lowest salary

 

f) Find the number of supervisor in every department.

Reference no: EM13380038

Questions Cloud

1 what is the role of the project manager why is : 1. what is the role of the project manager? why is leadership so important for project managers?2. discuss the
Fiction corporation is a large national retail chain of : fiction corporation is a large national retail chain of 10000 employees and 500 retail outlets. fiction is moving its
Your database has been a hit you have been called back to : your database has been a hit. you have been called back to the customers headquarters and they want a detailed report
Consider the following database that contains information : consider the following database that contains information about people vacation locations and when those people visited
Suppose we have a relation employees ssn name department : suppose we have a relation employees ssn name department salary.nbspfor each of the following queries either write the
1 a discuss the importance of scada securityb why are scada : 1. a. discuss the importance of scada security.b. why are scada systems particularly vulnerable to cyber treats? c.
Design reportthe design report is a single team report that : design reportthe design report is a single team report that describes the functionality of the application in its final
Question 1describe a malware attack that causes the victim : question 1describe a malware attack that causes the victim to receive physical advertisement.question 2suppose that a
Your supervisors and customers are very impressed with the : your supervisors and customers are very impressed with the database you have put together. however there is still that

Reviews

Write a Review

Database Management System Questions & Answers

  Create the digitalx database

Create the DigitalX database. Design tables and relationships and ensure that email addresses may only be used once in the database.

  Draw a uml class diagram

Agencies typically keep the details of the employers they have dealt with, even when they have no current business with them.

  Stack and queue data structure

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

  Design premiere products databas-shows relationship

Indicate changes you require to make to design of Premiere Products database to support following situation: There is no relationship between customers and sales reps.

  Provide a sql script file to define the database schema

Provide a SQL script file to define the database schema, HappyCustomerDB. Your script should be organised so that whenever the script is loaded all the database objects will be dropped and re-created.

  Create database db2game

LOAD FROM "C:\db2game\tutors.csv" of del insert into tutors (student_id, given_name, family_name, course_code, hourly_wage, status);

  Assignment 32nbspdatabase notation is not consistent you

assignment 3.2nbspdatabase notation is not consistent. you have probably seen that already when you tried to create an

  Draw an e-r diagram

Draw an E-R Diagram and draw an E-R Diagram for Student Information System.

  Explain eer model with data dictionary

Draw an EER model for the requirements identified in Part 1. The EER Model should be accompanied with a data dictionary which includes entity type table, relationship type table and attribute table.

  Find maximum salary of employees from database table

Find the maximum salary of all employees who are not managers. Give all the managers in the database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  What rules have to be enforced based on entity type

What rules would have to be enforced based on entity type? Choose one entity type and discuss what enforcement is needed by the database or application.

  Develop an er model

You are required to develop an ER model to represent the information requirements for a database that Queensland Liquor National online trader system will use as described on last page.

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