Anda di halaman 1dari 7

2/3/2017 SQLInterviewQuestionspart4Testingpool

Home
About
Contact
Features

Tutorials

Testingpool A Software testing Guide

SQL INTERVIEW QUESTIONS 0 FOLLOW:

SQL Interview Questions part 4 BLOG AUTHORS

BY SHEKHAR SHARMA SEPTEMBER 26, 2015

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.

dept. Data warehouse Architecture and


Process Flow.
Hide answer Metadata And Data Warehousing

SQL> select deptno, count (deptno) from EMP group by deptno Data Marts

havingCount (*)>3; ETL Concepts (2)


ETL Testing Guide
49) Display the various jobs along with total salary for each of the ETL Testing Life Cycle

jobsWhere total salary is greater than 40000. SQL (46)


SQL Statements .
Hide answer Data Definition Language ( DDL

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.

Hide answer Joins


Set Operators
SQL>select job, count (empno) from EMP group by job having count (job)>3;
Date() Functions

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

andearning highest salary among clerks. Commands)


Transaction Control Language (TCL
Hide answer Commands)

http://testingpool.com/sqlinterviewquestionspart4/ 2/7
2/3/2017 SQLInterviewQuestionspart4Testingpool

SQL>select empno,ename from emp where where job=CLERKand sal= Deadlocks in SQL

(select max(sal) from emp where job=CLERK); Logical Operators


Order By Clause in SQL
53) Display the names of salesman who earns a salary more than the Backup Table in SQL

highestsalary of any clerk. Distinct Clause in SQL


Data Control Language in SQL ( DCL
Hide answer Commands )
SQL>select ename,sal from emp where job=SALESMAN and sal> Constraints in SQL
Types of Constraints
(selectmax(sal) from empwhere job=CLERK);
Internal Working of Query Execution
54) Display the names of clerks who earn a salary more than the Data Dictionary

lowestsalary of any salesman. Data Types


SQL Interview Questions
Hide answer System Defined Functions 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

Hide answer SQL Interview Questions (13)


SQL Interview Questions
SQL>select ename,sal from emp where sal>(select sal from emp where
SQL Interview Questions part 1
ename=JONES)and sal> (select sal from empwhere ename=SCOTT);
SQL Interview Questions part 2

SQL Interview Questions part 3


SQL Interview Questions part 4
56) Display the names of the employees who earn highest salaries in SQL Interview Questions part 5

theirrespective job groups. SQL Interview Questions part 6


SQL Interview Questions part 7

http://testingpool.com/sqlinterviewquestionspart4/ 3/7
2/3/2017 SQLInterviewQuestionspart4Testingpool

Hide answer SQL Interview Questions part 8

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

department. Tidal Enterprise Scheduler (1)


Most Important ...Live Project
Hide answer Scenarios

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);

60) Display the names of employees from department number 10 with


salarygrether than that of any employee working in other department.

Hide answer

http://testingpool.com/sqlinterviewquestionspart4/ 4/7
2/3/2017 SQLInterviewQuestionspart4Testingpool

SQL>select ename from emp where deptno=10 and sal>any(select sal


fromemp where deptno not in 10);

Questions/Suggestions

Have any question or suggestion for us?Please feel free to post in


Q&A Forum

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.

YOU MAY ALSO LIKE...


http://testingpool.com/sqlinterviewquestionspart4/ 5/7
2/3/2017 SQLInterviewQuestionspart4Testingpool

0 0 0

SQL Interview SQL Interview SQL Interview


Questions part 7 Questions part 11 Questions
26 SEP, 2015 26 SEP, 2015 26 SEP, 2015

LEAVE A REPLY

Comment

Name * Email *

Website

Post Comment


http://testingpool.com/sqlinterviewquestionspart4/ 6/7
2/3/2017 SQLInterviewQuestionspart4Testingpool

Testingpool 2015. All Rights Reserved


http://testingpool.com/sqlinterviewquestionspart4/ 7/7

Anda mungkin juga menyukai