Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started