Q1) Please write. a query statement from emp table to display deptno 10’s empno, ename, sal, and a new_sal which is increase by 15% from the original sal (round the new_sal value to a whole number). Label the column headings to EMPNO, ENAME, SAL, and NEW_SAL. The result should be like below

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
100%

Q1) Please write. a query statement from emp table to display deptno 10’s empno, ename, sal, and a new_sal which is increase by 15% from the original sal (round the new_sal value to a whole number). Label the column headings to EMPNO, ENAME, SAL, and NEW_SAL. The result should be like below: 

[ image below - scr_question1.png ]

Q2) Please write .a query statement from emp table to display deptno 30’s empno, ename, sal, comm, and total_income which is a new column of the amount of sal + comm. Label the column heading to EMPNO, ENAME, SAL, COMM, TOTAL_INCOME. The result should be like below: 

[ image below - src_question2.png ]

 

 

-------------------------------------------------------------------------

Here is the material needed to answer those questions:

Material:

  • https://drive.google.com/file/d/14OwWDIybjAIeuHCO7McupV08gJs9nB-8/view?usp=sharing

 

  • https://drive.google.com/file/d/1npRH8JoJ6GYBzPU3iNjLXluvCyhr2tMu/view?usp=sharing

 

SQL> SELECT empno, ename,
FROM emp
WHERE ...;
ΕMPNO ΕΝΑΜΕ
SAL
NEW_SAL
7839 KING
5000
5750
7782 CLARK
2450
2818
7934 MILLER
1300
1495
Transcribed Image Text:SQL> SELECT empno, ename, FROM emp WHERE ...; ΕMPNO ΕΝΑΜΕ SAL NEW_SAL 7839 KING 5000 5750 7782 CLARK 2450 2818 7934 MILLER 1300 1495
SQL> SELECT empno, ename, sal,
FROM emp
WHERE deptno =
EMPNO ENAME
SAL COMM
TOTAL_INCOME
7698 BLAKE
2850
2850
7654 MARTIN
1250
1400
2650
7499 ALLEN
1600
300
1900
7844 TURNER
1500
1500
7900 JAMES
950
950
7521 WARD
1250
500
1750
Transcribed Image Text:SQL> SELECT empno, ename, sal, FROM emp WHERE deptno = EMPNO ENAME SAL COMM TOTAL_INCOME 7698 BLAKE 2850 2850 7654 MARTIN 1250 1400 2650 7499 ALLEN 1600 300 1900 7844 TURNER 1500 1500 7900 JAMES 950 950 7521 WARD 1250 500 1750
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
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