1.1 Print a list of all workers, ordered by job and then by age (from young to old). 1.2 Except for Peter M., display all the workers' names and initials. 1.3 Determine the number of workers born before 1990, as well as their job and dates of birth. 1.4 Determine all the employees that does not work for the department of sales. 1.5 Determine all the employees that have people working under them.

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
Oracle databases use structured query language (SQL) for writing and querying data.
Consider the Table 1 below:
Table 1: Employees
eid
Init job
dept
sname
dob
Office location
2001 Stones
Admin
HR
3-12-1980
JHB
2002 Johnson K
Salesrep Sales
Manager Accounting 4-6-1978
Training
12-4-1991
Midrand
2003 Nkosi
2004 Dludla
F
Pretoria
H
Trainer
20-6-1985
JHB
2005 Dlamini
J
Manager HR
7-9-1976
Pretoria
2006 Pale
K
Admin
HR
16-3-1997
Midrand
2007 Peter
M
Trainer
Training
14-4-1969
JHB
Use the above information and write SQL queries to answer the following questions
Transcribed Image Text:Oracle databases use structured query language (SQL) for writing and querying data. Consider the Table 1 below: Table 1: Employees eid Init job dept sname dob Office location 2001 Stones Admin HR 3-12-1980 JHB 2002 Johnson K Salesrep Sales Manager Accounting 4-6-1978 Training 12-4-1991 Midrand 2003 Nkosi 2004 Dludla F Pretoria H Trainer 20-6-1985 JHB 2005 Dlamini J Manager HR 7-9-1976 Pretoria 2006 Pale K Admin HR 16-3-1997 Midrand 2007 Peter M Trainer Training 14-4-1969 JHB Use the above information and write SQL queries to answer the following questions
1.1 Print a list of all workers, ordered by job and then by age (from young to old).
1.2 Except for Peter M., display all the workers' names and initials.
1.3 Determine the number of workers born before 1990, as well as their job and dates of birth.
1.4 Determine all the employees that does not work for the department of sales.
1.5 Determine all the employees that have people working under them.
Transcribed Image Text:1.1 Print a list of all workers, ordered by job and then by age (from young to old). 1.2 Except for Peter M., display all the workers' names and initials. 1.3 Determine the number of workers born before 1990, as well as their job and dates of birth. 1.4 Determine all the employees that does not work for the department of sales. 1.5 Determine all the employees that have people working under them.
Expert Solution
steps

Step by step

Solved in 2 steps

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