Answer the following questions then copy your code to a text document (with print screens) and upload it on Blackboard before the due date. A- Create this Employees table salary 1500 Department_id 66 First name Last name Almahmod Alnaser Al badr Saad Saleh Abdullah Mohammad 10500 2000 50 50 Alabdukarem 18000 50 Almasoud B- Then apply the following queries: Nasser 11000 70 1- Retrieve all the employees who got salary more than 2000$ 2- Retrieve all the employees who got salary in the range 2000$ to 11000$ 3- Retrieve all the employees who got salary out of the range 2000$ to 11000$

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Answer the following questions then copy your code to a text document (with print screens) and
upload it on Blackboard before the due date.
A- Create this Employees table
Department_id
66
First name
salary
1500
Last name
Almahmod
Alnaser
Al badr
Saad
Saleh
10500
50
Abdullah
2000
50
Mohammad
Alabdukarem
18000
50
Almasoud
B- Then apply the following queries:
Nasser
11000
70
1- Retrieve all the employees who got salary more than 2000$
2- Retrieve all the employees who got salary in the range 2000$ to 11000$
3- Retrieve all the employees who got salary out of the range 2000$ to 11000$
4- Retrieve all the employees who got salary 2000$ , 10500$ or 17000$ using the IN operator
5- Retrieve all the employees who got salary other than 2000$ , 10500$ or 17000$ using the
IN operator
6- Retrieve employee first name, last name and display his Full name which is the
concatenation of his first name and last name together.
7- Retrieve the first name, last name and salary for all employees whose first name start with
the letter S.
8- Retrieve the first name, last name and salary for all employees whose last name include the
letter s.
9- Retrieve the first name and last name for all employees whose first name consist of 4 letters.
10- Retrieve the first name and last name for all employees whose first name OR last name
contains _ (underscore symbol).
11- Retrieve the first_name , last_name, department_id and salary for all employees who is
working in department no 50 sorted by their salary in descending order.
12- Retrieve the first_name , last_name, department_id and salary for all employees sorted by
their department_id and their salary in descending order.
13- List out the departments' numbers where employees work.
Transcribed Image Text:Answer the following questions then copy your code to a text document (with print screens) and upload it on Blackboard before the due date. A- Create this Employees table Department_id 66 First name salary 1500 Last name Almahmod Alnaser Al badr Saad Saleh 10500 50 Abdullah 2000 50 Mohammad Alabdukarem 18000 50 Almasoud B- Then apply the following queries: Nasser 11000 70 1- Retrieve all the employees who got salary more than 2000$ 2- Retrieve all the employees who got salary in the range 2000$ to 11000$ 3- Retrieve all the employees who got salary out of the range 2000$ to 11000$ 4- Retrieve all the employees who got salary 2000$ , 10500$ or 17000$ using the IN operator 5- Retrieve all the employees who got salary other than 2000$ , 10500$ or 17000$ using the IN operator 6- Retrieve employee first name, last name and display his Full name which is the concatenation of his first name and last name together. 7- Retrieve the first name, last name and salary for all employees whose first name start with the letter S. 8- Retrieve the first name, last name and salary for all employees whose last name include the letter s. 9- Retrieve the first name and last name for all employees whose first name consist of 4 letters. 10- Retrieve the first name and last name for all employees whose first name OR last name contains _ (underscore symbol). 11- Retrieve the first_name , last_name, department_id and salary for all employees who is working in department no 50 sorted by their salary in descending order. 12- Retrieve the first_name , last_name, department_id and salary for all employees sorted by their department_id and their salary in descending order. 13- List out the departments' numbers where employees work.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY