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.

image text in transcribed

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

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago