Home
About
Contact
Features
Tutorials
Shekhar Sharma
You can see Part 3 here.
46) Display the various jobs and total salary for each job.
Shikha Katariya
Hide answer
SQL>select job, sum(sal) from emp group by job;
CATEGORIES
47) Display the various jobs and total salary for each job.
ETL Testing (55)
Hide answer Data Warehouse (5)
SQL>select job, min (sal) from emp group by job; Introduction..
http://testingpool.com/sqlinterviewquestionspart4/ 1/7
2/3/2017 SQLInterviewQuestionspart4Testingpool
48) Display the depart numbers with more than three employees in each Surrogate key In Data warehouse.
SQL> select deptno, count (deptno) from EMP group by deptno Data Marts
SQL> select job, sum (sal) from EMP group by job having sum (sal)>40000; Commands )
Indexes
50) Display the various jobs along with total number of employees in Views
eachjob. The output should contain only those jobs with more than three Sub Queries [ Uncorrelated Sub
Queries ]
employees.
Correlated Sub Queries.
51) Display the name of the employee who earns highest salary. DUAL Table in Oracle
Slow Changing Dimensions in
Hide answer Informatica (SCD)
SQL>select ename from EMP where sal= (select max (sal) from EMP); Null Functions
Anonymous PL/SQL Block
52) Display the employee number and name for employee working as clerk Data Manipulation Language ( DML
http://testingpool.com/sqlinterviewquestionspart4/ 2/7
2/3/2017 SQLInterviewQuestionspart4Testingpool
SQL>select empno,ename from emp where where job=CLERKand sal= Deadlocks in SQL
SQL>select ename from emp where job=CLERK and sal>(select Character Functions()
Where Clause
min(sal)from empwhere job=SALESMAN);
Ranking Functions()
55)Display the names of employees who earn a salary more than that Pattern Matching in SQL - Using
Wildcards
ofJones or that of salary grether than that of scott.
Between Operator in SQL
http://testingpool.com/sqlinterviewquestionspart4/ 3/7
2/3/2017 SQLInterviewQuestionspart4Testingpool
SQL>select ename,sal,job from emp where sal in(select max(sal) from SQL Interview Questions part 9
SQL Interview Questions part 10
empgroup by job);
SQL Interview Questions part 11
57) Display the employee names who are working in accounting SQL Interview Questions part 12
SQL>select ename from emp where deptno=(select deptno from dept Java (126)
Selenium Tutorial (63)
wheredname=ACCOUNTING);
UFT/QTP (33)
58) Display the employee names who are working in Chicago. UNIX (5)
The UNIX Architecture
Hide answer Getting Started - Unix Tutorials
SQL>select ename from emp where deptno=(select deptno from dept Unix Tutorial Part 1
Unix Tutorial Part 2
whereLOC=CHICAGO);
Unix Tutorial Part 3
59) Display the Job groups having total salary greater than the
maximumsalary for managers.
Hide answer
SQL>SELECT JOB,SUM(SAL) FROM EMP GROUP BY JOB HAVING SUM(SAL)>
(SELECTMAX(SAL) FROM EMP WHERE JOB=MANAGER);
Hide answer
http://testingpool.com/sqlinterviewquestionspart4/ 4/7
2/3/2017 SQLInterviewQuestionspart4Testingpool
Questions/Suggestions
SQLInterviewQuestionspart3 SQLInterviewQuestionspart5
Tags: SQL SQL Interview Question
Shekhar Sharma
Shekhar Sharma is founder of testingpool.com. He is an automation
engineer having more than 5 years of experience who loves
troubleshooting in automation and finding innovative ways to solve the
problems. His other leisurely activities includes playing harmonica,
paintings, sketching portrait, watching movies and travelling etc.
0 0 0
LEAVE A REPLY
Comment
Name * Email *
Website
Post Comment
http://testingpool.com/sqlinterviewquestionspart4/ 6/7
2/3/2017 SQLInterviewQuestionspart4Testingpool
http://testingpool.com/sqlinterviewquestionspart4/ 7/7