Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an SQL for the following problem and take a screen shot of the output. (3 Marks each): Task 1: Single Row Function 1) Write

Write an SQL for the following problem and take a screen shot of the output. (3 Marks each): Task 1: Single Row Function

1) Write an SQL statement that will display the Employee ID, Last name, First name and Job ID of all employees that belong to a department with Department ID 20 and whose Job ID has a substring rep.

2) Write an SQL statement that will display the Employee ID, Last name, First name, Job ID and salary of GrantDouglas.

3) Write an SQL statement that will display the Employee ID, Last name, First name, and Job ID of all employees that belong to a department with Department ID 20 and whose remainder of their salary from 3000 is greater than 500.

4) Write an SQL statement that will display the Employee ID, Last name, First name, and Job ID of all employees working in the company for more than 15 years.

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

Students also viewed these Databases questions

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago

Question

What lessons in OD contracting does this case represent?

Answered: 1 week ago

Question

Does the code suggest how long data is kept and who has access?

Answered: 1 week ago