Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Consider the following relations database: Employee(person_name, street, city) Works(person_name, company_name, salary) Company(company_name, city) Manages(person_name, manager_name) (a) Write down relational algebra to express the following

image text in transcribed

5. Consider the following relations database: Employee(person_name, street, city) Works(person_name, company_name, salary) Company(company_name, city) Manages(person_name, manager_name) (a) Write down relational algebra to express the following queries: (i) Find the names of all employees who do not work in Sonali Bank. (ii) Find the names of all employees who lives in Dhaka. (iii) Find the names of all employee whose manager name is Md. Salam Mia. (b) Write down SQL command for the following queries: (i) Find the employees whose salary is between 50,000 to 80,000 Taka. (ii) Find out the total amount of salary of Sonali Bank of Gazipur City. (iii) Sort the name of all employee of AB Bank of Uttara

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions