Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

B . Consider the emp and dept tables from a part of the relational database schema of Company database given below, and answer the following

B. Consider the "emp" and "dept" tables from a part of the relational database schema of "Company" database given below, and answer the following questions:
)=(5 marks
Emp (empno, ename, job, hiredate, sal, comm, deptno)
dept (deptno, dname, loc)
Write the SQL statement to display all employees having salary less than $10,000. such that the records are listed by ascending order according to the salary?
Write the SQL statement to display employee number, name, job, and salary of all employees whose employee's name starting with letter "A"?
We want to increase the salary of employee "Turki" with $500, and he will transfer to department number 2? Write the SQL statement to modify Turki 's record?
Write the SQL statement to display the total, maximum, and minimum salary for each department?
Write the Relational Algebra statements to retrieve the employee's name, job, salary, and department name for all employees having salary greater than $10,000? using Join operation? Pls solve it all with steps
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

What tools might be helpful?

Answered: 1 week ago