Vous êtes sur la page 1sur 24

11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

Java67
Java Programming tutorials and Interview Questions, book and course recommendations from Udemy, Pluarlsight etc
Searc

Home core java thread java 8 array coding string sql books j2ee oop collections data structure
e Follow by E
are
re
10 Frequently asked SQL Query Interview Questions Email addre

Interview Q
eet In this article, I am giving some examples of SQL
0 queries which is frequently asked when you go for a core jav
programming interview, having one or two year SQL inte
experience on this field. Whether you go for Java data stru
developer position, QA, BA, supports professional, coding i
project manager or any other technical position, may java col
interviewer expect you to answer basic questions from java des
Database and SQL. It's also obvious that if you are question
working from one or two years on any project there is thread in
good chance that you come across to handle hibernat
database, writing SQL queries to insert, update, delete j2ee inte
and select records. One simple but effective way to check candidate's SQL skill is by asking these types Spring I
of simple query. They are are neither very complex nor very big, but yet they cover all key concept a object o
question
programmer should know about SQL.

These queries test your SQL skill on Joins, both INNER and OUTER join, filtering records by using
WHERE and HAVING clause, grouping records using GROUP BY clause, calculating sum, average and
counting records using aggregate function like AVG(), SUM() and COUNT(), searching records using
wildcards in LIKE operator, searching records in a bound using BETWEEN and IN clause, DATE and
TIME queries etc. If you have faced any interesting SQL query or you have any problem and searching
for the solution, you can post it here for everyone's benefit. If you are looking for more challenging SQL
query exercises and puzzles then you can also check Joe Cleko's SQL Puzzles And Answers, one of
SQL Tutorials
the best books to really check and improve your SQL skills.
sql - select
sql - online Recommen
course
10 Must
sql - free books All Level
sql - table scan 10 Fram
database - view Should L
10 Books
sql - primary key
Read in
sql - index 10 Open
sql - unique key Framewo

sql - pdf 10 Progr


in 2018
sql - interview The Bes
questions days
sql - subquery 10 Java
database - books Question
Top 10 A
sql - foreign key for Java
sql - query 10 Books
questions SQL Query Interview Questions and Answers Read
sql - second 5 Great B
highest salary
Question 1: SQL Query to find second highest salary of Employee
sql - union vs
Answer: There are many ways to find second highest salary of Employee in SQL, you can either use
unionall
SQL Join or Subquery to solve this problem. Here is SQL query using Subquery:
sql - truncate
sql - delete
sql - self join select MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) from Employee );
sql - alter
command
Interview Questions See How to find second highest salary in SQL for more ways to solve this problem.
List

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 1/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
interview
questions - java Question 2: SQL Query to find Max Salary from each department.
basic
Answer: You can find the maximum salary for each department by grouping all records by DeptId and
interview
questions - java then using MAX() function to calculate maximum salary in each group or each department.
tough
interview
questions - java SELECT DeptID, MAX(Salary) FROM Employee GROUP BY DeptID.
thread
interview
questions - These questions become more interesting if Interviewer will ask you to print department name instead
coding
of department id, in that case, you need to join Employee table with Department using foreign key
interview Books and R
questions - linux DeptID, make sure you do LEFT or RIGHT OUTER JOIN to include departments without any

interview employee as well. Here is the query Best Boo


questions - web 5 Books
service Core in 2
interview 2 books
SELECT DeptName, MAX(Salary) FROM Employee e RIGHT JOIN Department d ON e.DeptId = d.DeptID GROUP BY De
questions - java 12 Advan
advanced Books fo
interview 5 Free Ja
In this query, we have used RIGHT OUTER JOIN because we need the name of the department from
questions - 5 Books
software design Department table which is on the right side of JOIN clause, even if there is no reference of dept_id on
Books Ev
interview Employee table. Read
questions - java Top 10 C
inheritance 10 Free
Question 3: Write SQL Query to display the current date.
interview 5 Books
Answer: SQL has built-in function called GetDate() which returns the current timestamp. This will
questions - OOP
Books Ev
interview
work in Microsoft SQL Server, other vendors like Oracle and MySQL also has equivalent functions. Read
questions - Top 10 C
android SELECT GetDate();
interview
questions - SQL
interview
questions - java Question 4: Write an SQL Query to check whether date passed to Query is the date of given
tricky
format or not.
interview
Answer: SQL has IsDate() function which is used to check passed value is a date or not of specified
questions - REST
format, it returns 1(true) or 0(false) accordingly. Remember ISDATE() is an MSSQL function
interview
questions - array and it may not work on Oracle, MySQL or any other database but there would be something similar.
interview
questions -
servlet jsp SELECT ISDATE('1/08/13') AS "MM/DD/YY";
Followers
interview
questions - EJB Followers (1

interview It will return 0 because passed date is not in correct format.


questions - java
collection
interview
questions - Question 5: Write an SQL Query to print the name of the distinct employee whose DOB is
design pattern between 01/01/1960 to 31/12/1975.
interview Answer: This SQL query is tricky, but you can use BETWEEN clause to get all records whose date fall
questions - spring
between two dates.
interview Follow
questions -
SELECT DISTINCT EmpName FROM Employees WHERE DOB BETWEEN ‘01/01/1960’ AND ‘31/12/1975’;
hibernate
interview
questions - core
java
interview Question 6: Write an SQL Query find number of employees according to gender whose DOB is
questions - between 01/01/1960 to 31/12/1975.
arraylist
Answer :
interview
questions - java SELECT COUNT(*), sex from Employees WHERE DOB BETWEEN '01/01/1960' AND '31/12/1975' GROUP BY sex;
enum
interview
questions - java
swing Question 7: Write an SQL Query to find an employee whose Salary is equal or greater than
interview 10000.
questions - java Answer :
common
http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 2/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

interview SELECT EmpName FROM Employees WHERE Salary>=10000;


questions -
support
interview
questions -
technical Question 8: Write an SQL Query to find name of employee whose name Start with ‘M’
interview Answer :
questions - java
main SELECT * FROM Employees WHERE EmpName like 'M%';
interview
questions -
hashmap
interview Question 9: find all Employee records containing the word "Joe", regardless of whether it was
questions - java
date stored as JOE, Joe, or joe.
Categories Answer :

core java (397)


SELECT * from Employees WHERE UPPER(EmpName) like '%JOE%';
core java interview
question answer (120)
Java collection tutorial
(99)
programming (90) Question 10: Write an SQL Query to find the year from date.
Coding Problems (65) Answer: Here is how you can find Year from a Date in SQL Server 2008
interview questions
(54) SELECT YEAR(GETDATE()) as "Year";
String (48)
Java 8 (39)
object oriented
programming (38)
Question 11: Write SQL Query to find duplicate rows in a database? and then write SQL query to Subscribe to
data structure and
algorithm (37) delete them?
error and exception Answer: You can use the following query to select distinct records:
(36)
ArrayList (34) SELECT * FROM emp a WHERE rowid = (SELECT MAX(rowid) FROM EMP b WHERE a.empno=b.empno)
books (31)
coding (31)
array (29) to Delete:
Java Multithreading
Tutorial (28) DELETE FROM emp a WHERE rowid != (SELECT MAX(rowid) FROM emp b WHERE a.empno=b.empno);
java io tutorial (19)
spring framework (19)
sql (19)
date and time (17) Download
Question 12: There is a table which contains two column Student and Marks, you need to find all
The E-book
JDBC (16) the students, whose marks are greater than average marks i.e. list of above average students.
J2EE (15) Email addres
Answer: This query can be written using subquery as shown below:
Java programming
Tutorial (15)
SELECT student, marks from table where marks > SELECT AVG(marks) from table)
SQL interview
Question (15)
Linux (14)
Servlet (13)
java (13)
JSP (12)
OCAJP (11)
thread interview
questions (11)
JavaScript (10)
database (10)
Eclipse (9)
Unix (8)
binary tree (8)
Java Interview
Question (7)
OCPJP (7)
design pattern (6) Question 13: How do you find all employees which are also manager? .
homework (6) You have given a standard employee table with an additional column mgr_id, which contains
Hibernate (4) employee id of the manager.
JSON (4)

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 3/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Web Service (4)
jQuery (4)
java concurrency
tutorial (4)
Hibernate interview
Question (3)
Java 5 tutorial (3)
Struts (3)
Java Enum (2)
debugging (2)
xml (2)
garbage collection (1)

Answer: You need to know about self-join to solve this problem. In Self Join, you can join two instances
of the same table to find out additional details as shown below

SELECT e.name, m.name FROM Employee e, Employee m WHERE e.mgr_id = m.emp_id;

this will show employee name and manager name in two column e.g.

name manager_name
John David

One follow-up is to modify this query to include employees which don't have a manager. To solve that,
instead of using the inner join, just use left outer join, this will also include employees without managers.

Question 14: You have a composite index of three columns, and you only provide the value of
Find an Airbnb
you love. two columns in WHERE clause of a select query? Will Index be used for this operation? For
example if Index is on EmpId, EmpFirstName, and EmpSecondName and you write query like
Book Now

SELECT * FROM Employee WHERE EmpId=2 and EmpFirstName='Radhe'

Blog Archive If the given two columns are secondary index column then the index will not invoke, but if the given 2
► 2018 (131) columns contain the primary index(first column while creating index) then the index will invoke. In this
► 2017 (94) case, Index will be used because EmpId and EmpFirstName are primary columns.
► 2016 (158)
▼ 2015 (100)
► December (8) Hope this article will help you to take a quick practice whenever you are going to attend any interview
▼ November (4) and not have much time to go into the deep of each query, but if you have good time to prepare then I
How to set suggest you to read and solve SQL queries from Joe Celko's SQL Puzzles and Answers, Second
JAVA_HOME edition, one of the best book for SQL query lovers and enthusiastic.
(PATH) in Mac
OS X 10.10
Yose...
Top 10 Android
Interview
Questions
Answers for
Jav...
10 Frequently
asked SQL
Query
Interview
Questions
3 Key difference
between
multi-
threading and
multi...

► October (12)
► September (10)

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 4/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
► August (9)
► July (18) Other Interview Questions posts from Java67 Blog
► June (21) 10 Tricky Java Interview Questions
► May (5) 10 Java Web Service Interview questions
► April (1) 10 Android Interview Questions
► March (3) 10 Java Collection and Generics interview questions
► February (2) 10 JDBC Interview Questions in Java
► January (7)

► 2014 (63) Further Learning


► 2013 (44) Introduction to SQL
► 2012 (64) The Complete SQL Bootcamp
SQL for Newbs: Data Analysis for Beginners

'Wheel Of Fortune' Host Pat Sajak Lives With His Partner In This Gorgeous
House
Mortgage After Life | Sponsored

People Born Between 1953 & 1979 With No Life Insurance are in for a Big Surprise
lifeinsurance.net | Sponsored

You Should Never Shop on Amazon Without Using This Trick – Here’s Why
SwagBucks | Sponsored

The One WD40 Trick Everyone Should Know About


Definition | Sponsored

Plastic Surgeon Reveals: “You Can Fill In Wrinkles At Home” (Here’s How)
Beverly Hills MD | Sponsored

Constant Fatigue Is A Warning Sign – See The Simple Fix


Gundry MD | Sponsored

Posted by Javin Paul

Labels: interview questions, java, sql, SQL interview Question

133 comments:

narasimha May 1, 2013 at 12:13 PM

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 5/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Really gud bro iam seraching for two months onwards thnxs...
Reply

Anonymous May 15, 2013 at 7:06 AM


Nice stuffs...Thanks..pls also try to update somethng new if you have
Reply

Pritam_Ghosh May 16, 2013 at 12:20 PM


Excellent Yaar..I was searching such question..Thanks keep posting
Reply

jaya June 12, 2013 at 6:12 AM


very nice, really helpful .... need more such type of questions.
Reply

Anonymous June 12, 2013 at 11:30 AM


thnx bro it's really helpful
Reply

Anonymous June 27, 2013 at 2:33 AM


Thanks For uploading............
And please upload for subqueries Also............
Reply

Replies

Anonymous July 3, 2013 at 3:57 AM


Thanks pal...I needed these things...

Unknown October 12, 2015 at 9:52 AM


Good queries for practice SQL

Dhara Makadiya October 21, 2018 at 10:19 AM


Thank you queries are really useful for SQL interv preparation

Reply

Anonymous July 6, 2013 at 10:49 AM


Question 9: find all Employee records containing the word "Joe", regardless of whether it was stored as JOE,
Joe, or joe.

SQL>SELECT * FROM Employees


WHERE UPPER(EmpName) LIKE '%JOE%';
Reply

Replies

Ravi Krishna November 8, 2013 at 4:53 AM


Select * from employee where EmpName in ('Joe','JOE','joe')

Anonymous June 4, 2014 at 8:59 PM


This wont find jOE, jOe kind of names. Query given by previous Anonymous is correct.

Anonymous June 12, 2015 at 12:59 PM


select * from employee
Where EmpName like '%Joe%'

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 6/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

This will help you find any name whose name came with joe but if u want find only starting 3 letter
who start with name Joe. That time u having use below query.

select * from employee


Where EmpName like 'Joe%'

and vice versa for last name word was joe use this

select * from employee


Where EmpName like '%Joe'

Sachin Singh Thakur June 8, 2017 at 3:48 PM


Sahi h

Unknown November 28, 2017 at 11:23 PM


SELECT * FROM Employees
WHERE EmpName LIKE '%JOE%

Works fine in Ms Sql server.. and will find you jOE, jOe, kind of names as well.. it is insensitive.

Elaf B November 28, 2017 at 11:25 PM


SELECT * FROM Employees
WHERE EmpName LIKE '%JOE%

Works fine in MsSql Server. It is case insensitive.

sonu sharma June 15, 2018 at 2:08 AM


You can comparison functions , such as UPPER or LOWER , we have in DB2

Query becomes :

Db2-> Select * from EMPLOYEE where UPPER(EMPNAME) IS LIKE UPPER('%Joe%')

This will convert column value into upper and then compare with 'JOE'.

Reply

Anonymous July 8, 2013 at 5:06 AM


Even a children can create all these query's ......
Reply

Replies

Anonymous September 24, 2017 at 7:27 AM


then why you read till end
a child can but you can't

Anonymous October 17, 2017 at 2:53 AM


Why to give reply after 4 yrs...of the comment

Reply

Anonymous July 16, 2013 at 1:33 AM


good effort publish more queries
Reply

Replies

Anonymous April 16, 2015 at 12:39 AM


OK

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 7/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

Reply

Anonymous July 16, 2013 at 2:16 AM


I was asked this SQL Question in recent interview :

1) You have a composite index of three columns, and you only provide value of two columns in WHERE clause
of a select query? Will Index be used for this operation?

Can any one please help here?


Reply

Replies

Anonymous September 24, 2013 at 3:15 AM


If the given two columns are secondary index column then index will not invoke

but if the given 2 columns contain primary index(first col while creating index) then index will invoke.

Jaspreet Banga September 29, 2013 at 7:43 AM


in your case the composite index would not work because of the column not included in the where
clause.

Still you want to use an index you give an index hint select /*+ INDEX(TABLE_NAME IDX_NAME) */
* from table_name;

After imposing the force index you can read the explain plan and verify the cost , if index scan is
more costlier than the FTS then its not a good idea to go with index

Reply

Anonymous July 30, 2013 at 11:24 PM


Good Questions.
Need more sql questions of this kind. :)
Thanks.
Reply

Keshav Singh August 21, 2013 at 11:30 PM


Initial few question are upto standard . Other are very very basic SQL queries
Reply

suresh kumar August 30, 2013 at 10:23 AM


Good Questions
Reply

bhavesh September 25, 2013 at 4:05 AM


nice upload some query for experience developer
Reply

Anonymous October 30, 2013 at 12:14 AM


Some queries are very good but some one is very basic and please update this page after some period.
Reply

Anonymous November 11, 2013 at 12:09 AM


My list of some good SQL Query based interview Questions :

1) Write SQL Query to find duplicate rows in a database? and then write SQL query to delete them?
2) TODO
3) TODO
4) TODO

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 8/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

ha ha ha
Reply

Replies

Anonymous November 13, 2013 at 11:25 PM


for selecting the distinct records:

select * from emp a where rowid = (select max(rowid) from emp b where a.empno=b.empno)

to Delete:

delete from emp a where rowid != (select max(rowid) from emp b where a.empno=b.empno);

Jagadish K November 21, 2013 at 10:44 PM


I know to ways one way use max and another way use distinct
one way :DELETE
FROM TestTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM TestTable
GROUP BY NameCol)
GO
and
another way
Select Distinct id, name into #temp from emp;
Truncate table emp;
Insert into emp(id,name) select id,name from #temp;

Nandakumar Govindarajulu Ethirajulu January 14, 2016 at 11:47 AM


Ans: Select Key column --> Group by Key column --> Having count(*) > 1
Will give Duplicate records
Replace select with Delete statement

Nandakumar Govindarajulu Ethirajulu January 14, 2016 at 11:54 AM


eg., Delete from customer where cus_id in (select cus_id from customer
group by cus_id
having count(*) > 1)

Nandakumar Govindarajulu Ethirajulu January 14, 2016 at 12:02 PM


For performance (Millions of records) Use exists instead of in and Constant for Existence Checking

eg.,
delete from customer a where exists (select 1 from customer b where a.cus_id = b.cus_id
group by cus_id
having count(*) > 1)

Jamal Ahmed March 13, 2017 at 5:02 AM


You can use the RowNumber() to delete duplicate records -

DELETE E
FROM Employee E
INNER JOIN (Select RowNumber () over (Partitioned by ID group by ID) R
From Employee) Emp
ON E.ID=Emp.ID
Where Emp.R>1
Where R>1

Anonymous October 17, 2017 at 2:59 AM


There may be 100 records with same cus_id , but values in other columns in all the records will not
be same.....Then the join condition will fetch all 100 records and will delete 99 records.(Though they
are not duplicate)....
col1 col2 col3

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 9/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
1A2
1A2
1B2
only first two are duplicate , third is not duplicate..

Reply

Anonymous January 18, 2014 at 1:02 PM


Really good ones, Can you add more do this list please?
Reply

Replies

Javin Paul January 18, 2014 at 7:00 PM


Hi Anonymous, I am planning to add more such SQL queries, but if you have been asked something
then you can also share with us. Thanks

Reply

Shubhangi January 23, 2014 at 8:02 PM


I was asked to write following SQL queries in interview. There is a table which contains two column Student
and Marks, you need to find all the students, whose marks are greater than average marks i.e. list of above
average students. Here is what I wrote:

SELECT Student, Marks FROM Products WHERE Marks> AVG(Marks);

And he says WRONG? Hmmmmm.


Reply

Replies

Rahul Askar February 4, 2014 at 10:41 AM


Hi Shubhangi,

You can not use the where clause with SQL functions. Instead you should use HAVING. So, correct
query will be- SELECT Student,Marks FROM Products HAVING Marks>AVG(Marks);

Anonymous July 22, 2014 at 7:58 AM


select student, marks from table where marks > (select avg(marks) from table)....

will this work?

Anonymous September 2, 2014 at 5:18 AM


rahul's not right answer......above subquery will be good......

Anonymous September 21, 2014 at 1:28 AM


Shubhangi, Aggreate functions can't be used in WHERE clause.

Rahul, HAVING can not be used without GROUP BY.

Subquery will serve the purpose.

Himanshu shekhar October 19, 2014 at 11:01 AM


SELECT Student, Marks FROM products
WHERE marks>(select avg(marks) from products);
Here we can't use having clause as it is not a group by expression. We can't use group functions like
avg,sum,max in where clause even it is a group by expression.

Anonymous October 19, 2014 at 1:34 PM


I think this is right

SELECT Student, Marks FROM Products WHERE Marks > (SELECT AVG(Marks) FROM Products);
http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 10/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

Anonymous November 6, 2014 at 6:12 PM


You can try this -
WITH cte_mks(Student,AvgMarks)
AS
(SELECT Student,AVG(marks)mks
FROM GROUP BY Student)
SELECT s.Student,Marks
FROM s
INNER JOIN cte_mks m on s.Student=m.Student
and s.marks>m.AvgMarks

Reply

Mahesh Thorat February 3, 2014 at 5:24 PM


Gud job, plz keep it up!
Reply

samiu June 11, 2014 at 11:55 AM


its very helpful for all give some more example
Reply

Anonymous August 31, 2014 at 10:55 PM


Anohter interesting query I come across on an interview was "how do you find all employees which are also
manager?". give an standard employee table with an additional column mgr_id, which contains employee id of
manager.
Answer : You need to know about self join to solve this problem. In Self Join, you join two instances of same
table as shown below

Select e.name, m.name from Employee e, Employee m where e.mgr_id = m.emp_id;

this will show employee name and manger name in two column e.g.

surabhi Balaji
snhea Balaji

One follow-up is to modify this query to include employees which doesn't have manager. To solve that, instead
of using inner join, just use left outer join, this will include employees without managers.
Reply

Anonymous September 8, 2014 at 9:31 PM


querys r very helpful to me need more querys to practice
Reply

Replies

vinodhini September 24, 2014 at 4:56 AM


sql is not case sensitive

Unknown February 28, 2016 at 8:57 AM


or we can directly use

Select * from Employees where manager_id id not null.

How about the above one. Because an employee is a manager, then he must be having manager id.

Please correct me if i'm wrong.

Reply

vinodhini September 24, 2014 at 4:52 AM

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 11/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
SELECT *
FROM Customer_Entry
WHERE (Customer_Name LIKE '%JOE%')
Reply

Anonymous November 14, 2014 at 7:42 AM


The answers given certainly aren't portable or platform independent SQL
Reply

Replies

Anonymous December 10, 2014 at 10:43 PM


Yes, I believe GETDATE() method works only SQL Server, not sure if it works on Oracle or MySQL.
Though in MSSQL it returns :

SELECT GETDATE()

2014-12-11 15:40:02.910

Mansi December 10, 2014 at 10:51 PM


Hi,

I was asked following SQL query in a recent interview :

You have an Employee table with id, name, salary, manager_id and dept_id and you have a
Deparatment table with dept_id and dept_name. Write SQL queries to

1) Print name of Employee and their Manager's name


2) Print All deparatment and number of employees on it
3) Print all employees who has higher salary than average salary of their department.

I solved them like following, but he says not correct ......

1) SELECT e1.name, e2.name as manager FROM Employee e1 JOIN Employee e2 WHERE


e1.manager_id = e2.id

2) SELECT d.dept_name, count(*) as NumOfEmploye FROM Employee e, Department d WHERE


e.dept_id = d.dept_id

third one I couldn't able to solve in limited time.

Please suggest why he said my answers are wrong, I still didn't get it. thank you

Rajeev December 15, 2014 at 6:42 PM


Hello Mansi, I think your first query is correct. That's the right way to do the self join. but you second
query has a little mistake. Since Question was about print all deparatments, you should have used
left outer join instead of innner join. In your query it will not print departments where no employee is
working. So the correct query would be :

SELECT d.dept_name, count(*) as NumOfEmploye FROM Depatment d LEFT JOIN Employee


e ON d.dept_id = e.dept_id

Remeber I have also change the order, bringing Department table at left.

3) For third query I think you can use a subquery to solve the problem. First find out average salary
of the department and then print all employee whose salry is greater than average salary.

Amit December 17, 2014 at 11:04 PM


Hi Mansi, Amit here. You can use correlated subquery to find all employees whose salary is greater
than average salary in their department, here is the SQL query :

SELECT emp_name, salary FROM Employee e1 WHERE salary >= (SELECT AVG(salary) FROM
Employee e2 where e1.department = e2.department)

Let me know if you have any question, happy to help.

Reply

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 12/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Anonymous December 17, 2014 at 12:44 AM
An interesting question for freshers, you have a table called Scorecard with a numeric column score ,
containing last 6 scores of a cricket player as shown below :

create table Scorecard (int score)

insert into Scorecard values (144);


insert into Scorecard values (144);
insert into Scorecard values (99);
insert into Scorecard values (23);
insert into Scorecard values (68);
insert into Scorecard values (105);

Can you write a SQL query to find the second largest score from this table? for example in this case it shoud
return 105
Reply

Replies

Amit December 17, 2014 at 11:09 PM


This question can be solved with and without correlated subquery :

without correlated sub query :

select MAX(score) from Scorecard where score NOT IN (select MAX(score) from Scorecard)

using correlated sub query

select MAX(score) from Scorecard s1 where 2 = (select count(distinct score) from Scorecard
s2 where s2.score >= s1.score)

Anonymous December 26, 2014 at 9:29 PM


Top n Analysis-
SELECT *
FROM (SELECT ROWNUM AS RANK,S1.SCORE
FROM (SELECT SCORE
FROM Scorecard
ORDER BY SCORE DESC)S1)S2
WHERE S2.RANK=2

Reply

Anonymous January 21, 2015 at 2:12 AM


thanks guys all post are awesome
Reply

Pankaj February 16, 2015 at 10:06 AM


I asked one Q that in a column positive and negative numbers are there(like 10 20 30 100 -10 -20 -30 -200)
now with single select statement I want positive and negative numbers separately. Can anyone explain this?
Reply

Replies

poly sinha March 10, 2015 at 12:07 AM


Hi pankaj, please check this query hope it will satisfy ur criteria.

select * from number1 where digit >= 10 or digit <= 10;

if m wrong please guide.

kisan swain April 4, 2015 at 2:14 PM


select (case when digit>=0 then digit end )positive, (case when digit<=0 then digit end )negative
from t.n;

Reply

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 13/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Anonymous March 27, 2015 at 7:29 AM
On Question 2, your left outer join is incorrect. You stated, "make sure you do LEFT OUTER JOIN to include
departments without any employee as well. Here is the query"

SELECT DeptName, MAX(Salary) FROM Employee LEFT JOIN Department d ON e.DeptId = d.DeptID;

Problem is, this join will give you all employees whether or not they belong to a department.

Reply

al0 April 15, 2015 at 4:50 AM


SELECT DeptName, MAX(Salary) FROM Employee e LEFT JOIN Department d ON e.DeptId = d.DeptId
in most SQL dialects will miserably fail due to the missing GROUP BY clause.
Even if your SQL dialect will permit it (which I seriously doubt) it
would return not departments without employees but employees without department, to reach claimed goal
you have either write
SELECT DeptName, MAX(Salary) FROM Department d LEFT JOIN Employee e ON e.DeptId = d.DeptId
or
SELECT DeptName, MAX(Salary) FROM Employee e RIGHT JOIN Department d ON e.DeptId = d.DeptId

SELECT GetDate();
Many if not most SQL dialects mandate FROM clause.

I am to lazy to read this crap further - if someone would give such answer to me his chances to get the job will
be around zero.
Reply

shukur May 18, 2015 at 4:40 AM


Very nice queries for experience....
Reply

Amit Choudhury May 25, 2015 at 1:55 PM


You have an Employee table with id, name, salary, manager_id and dept_id and you have a Deparatment table
with dept_id and dept_name. Write SQL queries to
Print All deparatment and number of employees on it

ANSWER ASAP if possible....thanx in advance


Reply

Anonymous May 27, 2015 at 2:11 AM


@Amit, the key here is to use LEFT or RIGHT outer join because Interviewer is looking for ALL department i.e.
dpeartment with no employees. Your query should be like

SELECT d.dept_name, COUNT(id) from Department d LEFT JOIN Employee e ON d.dept_id = e.dept_id
GROUP BY dept_name;

Since we have put Department table on left, it will include all department, those also for which dept_id is not
available in Employee table.
Reply

Anonymous June 22, 2015 at 6:36 AM


FInd more sql querys for interview practice on below link....good collection

http://datawearhousebiworld.blogspot.com/p/blog-page_44.html
Reply

Anonymous June 23, 2015 at 11:42 AM


I was asked to write the SQL for - Display numbers of customers who ordered and bought the items in the
same month ?

Reply

Replies

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 14/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

u vinod November 15, 2017 at 9:58 AM


Select count(customerid) from customers where
datepart(mm,bought_date)=datepart(mm,order_date)

u vinod November 15, 2017 at 9:59 AM


select customerid from customers where datepart(mm,order_date)=datepart(mm,bought_date)

Reply

Anonymous September 28, 2015 at 5:59 AM


Mostily asked sql developer interview questions:

Q1. What is the use of GRANT command?

Ans. GRANT command is used to grant specific user to perform specific task.

Q2. What is the use of SQL check constraint?


Ans. CHECK constraint limits the value range that can be placed in a column.
Reply

Anonymous October 9, 2015 at 11:26 AM


Thanks for the article. Some of the SQL statements are running to the right hand side, could you make them
wrap around please? Thanks.
Reply

vikas October 30, 2015 at 12:08 AM


SELECT ISDATE('1/08/13') AS "MM/DD/YY"; why this will return 0. it returns 1 because value is datetime
Reply

Anonymous November 4, 2015 at 6:36 PM


These SQL queries are good to ask for freshers, or 1 to 2 years experience programmer but any experienced
SQL or Web developer surely can answer all of these questions. I would probably include more SQL queries
on joins because that's the one area where both junior and senior developer struggle e..g giving them couple
of tables with more than 20 columns on each and then asking some SQL queries for generating daily reports. I
also try to minimize database specific questions e.g. something which is only applicable to MySQL, SQL
SERVER or Oracle should not be asked unless you are tied to just one and really need expert on those
database.

A good interview for SQL should include


- joins
- stored procedure
- and joins again

Good luck
Reply

Unknown November 25, 2015 at 4:52 AM


Why my query doesn't work?

The query is:

SELECT MGHEAD.MGLINE, MGHEAD.MTRESP, MGHEAD.MTTRDT, MGHEAD.MTWHLO,


MGHEAD.MTTRNR, MGHEAD.MTTRSH
FROM MVXBE.MVXCDTMESP.MGHEAD
WHERE (MGHEAD.MGLINE ='100') AND (MGHEAD.MTWHLO='R31') AND (MGHEAD.MTTRSH='15')

When I run, I have an error: Column MTTRSH not in table MGHEAD in MVXCDTMESP
Can you help me?
Reply

Sandeep Yadav November 25, 2015 at 5:18 AM


please any one know how to find employee who working more than one department ,write the syntex only .

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 15/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Reply

Replies

bhavin relwani January 12, 2016 at 3:05 AM


select emp,count(dept) from emp e inner join dept on e.emp=d.emp group by emp having
count(dept)>1

Reply

Anonymous December 8, 2015 at 12:10 AM


A good exercise for brains:)
Reply

Anonymous December 8, 2015 at 12:13 AM


Good work . it is really helpful
Reply

Unknown December 8, 2015 at 11:51 PM


*
**
***
****
*****

using lpad and rpad


Reply

Khan Saadi December 18, 2015 at 6:01 AM


The first Query can also be written as
select max(sal) from emp
where sal < (select max(sal) from emp where sal;
It can be nested thrice also so it will give third highest salaries among employees..
Reply

raj December 23, 2015 at 8:26 PM


Thank you.. For Good Post.
Reply

Unknown January 5, 2016 at 2:51 AM


Thanks a lot, Really nice Interview Questions.
Reply

Anonymous February 8, 2016 at 10:33 AM


Good queries for Java Developers
Reply

Anonymous February 17, 2016 at 12:15 AM


Knowing just SQL queries will not be enough, you also need to prepare traditional SQL interview questions
like:
What are window function?
Difference between rank() and dense_rank() in SQL?
Difference between where and having clause in SQL?
Difference between correlated vs non-correlated subquery?
primary key vs foreign key
truncate vs delete etc.
Reply

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 16/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
kanika narang March 9, 2016 at 12:03 AM
please post more questions..........
Thanks
Reply

Janardan Singh March 17, 2016 at 11:56 PM


What is difference between Clustered Index and No-Clustered Index??
Reply

Replies

Imma Mnyasa April 28, 2017 at 2:04 AM


Clustered indexes sort and store the data rows in the table or view based on their key values.
Nonclustered indexes have a structure separate from the data rows. A nonclustered index contains
the nonclustered index key values and each key value entry has a pointer to the data row that
contains the key value.

Reply

Janardan Singh March 17, 2016 at 11:59 PM


What is normalization? Explain different forms of normalization?

Normalization is a process of organizing the data to minimize the redundancy in the relational database
management system (RDBMS). The use of normalization in database is to decompose the relations with
anomalies to produce well structured and smaller relations. There are 6 forms of normalization which are as
follows:-
- 1NF represents a relation with no repeating groups
- 2NF represents no non-prime attribute in the table
- 3NF defines that every non-prime attribute is non-transitively dependent on every candidate key
- 4NF defines that every non-trival multi-valued dependency in table is dependent on superkey.
- 5NF defines that every non-trival join dependency in table is implied by superkey in table.
- 6NF defines that a table features no non-trival join dependency.
Reply

Anonymous April 1, 2016 at 6:30 AM


We Have two table Product_detail and Supplier. In Product_detail column are
P_id,P_name,P_quantity,P_comments AND In Supplier column are S_id, S_name,S_phone,S_city.

Question 1 : list all supplier name and phone where product quantity is 0 ?
Question 2 : list all supplier name where comments is greater then 300 string?
Reply

Replies

Anonymous April 21, 2016 at 7:48 AM


Q1: SELECT s_name,s_phone from Supplier s where s.column_name in (select p.colum_name from
product_detail p where p.p_quantity = 0)

OR
SELECT s_name,s_phone from Supplier s left outer join product_detail p on s.column_name =
p.column_name and p.p_quantity = 0)

Q2. SELECT s_name from Supplier s where s.column_name in (select p.colum_name from
product_detail p where len(p.p_comments) > 300)

OR
SELECT s_name from Supplier s left outer join product_detail p on s.column_name =
p.column_name and len(p.p_comments) > 300

Reply

Unknown May 25, 2016 at 3:14 PM


wonderful
Reply

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 17/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

Aniket Kakade June 3, 2016 at 12:27 AM


Id Dept_Name Dept_Id
1A3
2B5
3C2
4D1
5E1

I have this department table

Dept_Name Dept_Id
AC
BE
CB
DA
EA

I want this type output like above.


anybody can help me

Which query is used?


Reply

Replies

Unknown March 1, 2017 at 12:55 AM


use self join
select m.dept_name,n.dept_id from department m,department n where m.id=n.dept_id
hopefully it works (Y)

u vinod November 15, 2017 at 9:45 AM


select d.name,s.name as deptid from Dept_Test d inner join Dept_Test s on d.id=s.deptid

u vinod November 15, 2017 at 9:45 AM


select d.name,s.name as deptid from Dept_Test d inner join Dept_Test s on d.id=s.deptid

ashwathy February 17, 2018 at 11:52 PM


select d.dept_name,m.dept_name as dept_id from department d INNER JOIN department m ON
d.dept_id=m.id
order by d.dept_name

Reply

Anonymous June 3, 2016 at 12:29 AM


Id Dept_Name Dept_Id
1A3
2B5
3C2
4D1
5E1

I have this department table

Dept_Name Dept_Id
AC
BE
CB
DA
EA

I want this type output like above.


anybody can help me

Which query is used?


Reply

Replies

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 18/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

ashwathy February 17, 2018 at 11:53 PM


select d.dept_name,m.dept_name as dept_id from department d INNER JOIN department m ON
d.dept_id=m.id
order by d.dept_name

Reply

pavan kumar June 27, 2016 at 5:51 PM


nice info very usefull
Reply

Anonymous June 30, 2016 at 10:29 PM


hmmm.. effective stuff..
Reply

Deepika Sain July 6, 2016 at 10:01 PM


nice
Reply

Anonymous July 27, 2016 at 9:33 PM


This is an excellent collection. Can I request you to add more complex and tough SQL questions please e.g.
related to index rebuild, performance, query troubleshooting and finding ways to optimize queries, that will help
a lot.
Reply

Sanjib Singh September 8, 2016 at 12:00 AM


hi guys I have one query---- i.e. suppose their is a string named as 'aabacus' to get no of characters'a' from this
string we can use select regexp_count('aabacus' 'a') from dual; then o/p -- 3, is their any alternate method to
get the same result.

thanks
Reply

Bonny Varghese September 20, 2016 at 9:09 AM


Adding one set of questions I faced during oracle interview. Adding the answers too!!

create table employee(id int, name varchar(50), department varchar(50), manager int, doj date);
insert into employee values(1,'John','IT',9,'05-08-2010');
insert into employee values(2,'Alex','Corp',0,'06-03-2008');
insert into employee values(3,'Linda','IT',9,'07-02-2010');
insert into employee values(4,'Rahul','Purchase',8,'08-12-2010');
insert into employee values(5,'Ismail','Purchase',8,'09-08-2012');
insert into employee values(6,'Zheng','Sales',7,'10-05-2012');
insert into employee values(7,'Reiki','Sales',2,'11-02-2009');
insert into employee values(8,'Aris','Sales',2,'12-08-2011');
insert into employee values(9,'Jena','IT',2,'01-01-2008');
insert into employee values(10,'Bonny','IT',9,'01-01-2008');
select * from employee;
select id,manager,to_char(doj,'dd-mon-yyyy') from employee;
1. list the employees who are not managers

select name from employee


where id not in (select manager from employee);

2. manager with only one reportee

select mgr from (select e1.id as mgr ,e2.id as id from employee e1


inner join employee e2 on
e1.id=e2.manager)abc
group by mgr having count(id)=1

3. what is the month with most hiring?

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 19/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

select dt from (select dt,rank() over(order by cnt desc) as rnk from (select to_char(doj,'mm') as dt ,count(*) as
cnt from employee
group by to_char(doj,'mm'))) where rnk=1;

4.what is the experience gap between the first employee and the latest?

select max(doj)-min(doj) from employee;

5. name the manager with most reportees?

select mgr from (select mgr,rank() over( order by cnt desc) as rnk from (select mgr,count(id) as cnt from (select
e1.id as mgr,e2.id as id from employee e1
inner join employee e2
on e1.id=e2.manager)
group by mgr)) where rnk=1

6.list managers who joined after the reportees

select mgr from (select e1.id as mgr,e2.id as id,e1.doj as mdoj, e2.doj as edoj from employee e1
join employee e2 on
e1.id=e2.manager)
group by mgr
having max(mdoj)>min(edoj)

7.department with most managers and how many?

select department,cnt from (select department,rank() over(order by cnt desc) as rnk,cnt from (select
count(distinct manager) as cnt ,department from employee
group by department)) where rnk=1
Reply

Replies

Javin Paul November 16, 2016 at 7:43 AM


Great questions Bonny, keep it up. Thanks for sharing with us.

Reply

Meenakshi Agarwal October 23, 2016 at 6:08 AM


Good questions and explained with clarity.
Reply

saily November 9, 2016 at 9:12 PM


really good article , helped me for interview preperation
Reply

Allen jeley January 1, 2017 at 11:56 PM


nice
Reply

Anonymous January 8, 2017 at 9:04 AM


very uesfully sql query and some more query in the point of interview process query pls upload....
Reply

Anonymous January 8, 2017 at 9:05 AM


very usefully sql query
Reply

Raman February 3, 2017 at 11:03 PM


Emp tb1 and emp tb2 two table here I want second emp tb2 emp id 1,2,1,2 emp id 1 salary 2000 empid 2
salary 4000 empid 1 salary 3000 empid 2 salary 5000
Result
Emp id 1 ,1 5000

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 20/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Emp id 2 ,2 9000
How to written a query's
Reply

Raman February 3, 2017 at 11:06 PM


Emp tb1 and emp tb2 two table here I want second emp tb2 emp id 1,2,1,2 emp id 1 salary 2000 empid 2
salary 4000 empid 1 salary 3000 empid 2 salary 5000
Result
Emp id 1 ,1 5000
Emp id 2 ,2 9000
How to written a query's
Reply

Raman February 3, 2017 at 11:08 PM


Example @gmail.com
How to get before @value .I want select query
Reply

yashwanth satyappanavar April 4, 2017 at 6:15 AM


• Rank function syntax in SQL

SELECT a1.ename, a1.Sal, COUNT (a2.Sal) Sal_Rank


FROM emp a1,emp a2
WHERE a1.Sal < a2.Sal OR (a1.Sal=a2.Sal AND a1.ename = a2.ename)
GROUP BY a1.ename, a1.Sal
ORDER BY a1.Sal DESC, a1.ename DESC;

• Running_Total

SELECT a1.ename, a1.Sal, SUM(a2.Sal) Running_Total


FROM emp a1, emp a2
WHERE a1.Sal <= a2.sal or (a1.Sal=a2.Sal and a1.eName = a2.eName)
GROUP BY a1.eName, a1.Sal
ORDER BY a1.Sal DESC, a1.eName DESC;

• Percent To Total
SELECT a1.eName, a1.Sal, a1.Sal/(SELECT SUM(Sal) FROM emp) Pct_To_Total
FROM emp a1, emp a2
WHERE a1.Sal <= a2.sal or (a1.Sal=a2.Sal and a1.eName = a2.eName)
GROUP BY a1.eName, a1.Sal
ORDER BY a1.Sal DESC, a1.eName DESC;

• Cumulative Percent To Total

SELECT a1.eName, a1.Sal, SUM(a2.Sal)/(SELECT SUM(Sal) FROM emp) Pct_To_Total


FROM emp a1, emp a2
WHERE a1.Sal <= a2.sal or (a1.Sal=a2.Sal and a1.eName = a2.eName)
GROUP BY a1.eName, a1.Sal
ORDER BY a1.Sal DESC, a1.eName DESC;

Reply

yashwanth satyappanavar April 4, 2017 at 6:16 AM


125. Display all employees with their department names
126. Display ename who are working in sales department
127. Display ENAME, DNAME, SAL and COMM for employees with salary between 2000 to 5000 and location
is Chicago
128. Display those employees whose salary is greater than his managers salary
129. Display those employees who are working in the same dept where his manager is work
130. Display those employees who are not working under any Manager
131. Display ENAME, GRADE (deptno 10 or 30) (grade is not 4) (joined company before 31-DEC-82)
132. Delete employees joined company before 31-Dec-82 while their Location is New York or Chicago?
133. Display employee name ,job,deptname,loc for all who are working as manager?
134. Display those employees whose manager name is JONES and also display their manager name?
135. Display employee names who are working in ACCOUNTING department

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 21/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
136. Display the employee names who are working in CHICAGO
137. Display name and salary of FORD if his salary is equal to hisal of his grade?
138. Display employees whose salary is less than his manager but more than salary of other managers?
139. Display those employees whose manager name is Jones
140. Display the details of those employees who do not have any person working under him
141. Display the details of those employees who are in sales department and grade is 3
142. Display those department where no employee working?
143. Display ename, job and his manager. Display also employees who are without managers?
144. Find out the number of employees whose salary is greater than their managers salary?
145. Display ename, job, dname, his manager name, his grade and display output department number wise?
146. List ename, job, sal, grade and dname for everyone in a company except 'CLERK'. Sort on salary display
the highest salary first?
147. Display ENAME, Manager Name for employees who has EMPNO as odd number; Display ENAME,
Manager’s Manager Name for all the employees who has EMPNO as even number. If Manager’s Manager is
not present display Manager Name and display employee name if no manager is present for that employee.
Output should consist of two columns: 1-ENAME, 2-BOSS

Reply

Replies

Anonymous June 25, 2017 at 8:51 PM


Hello Yashwanth, very good questions, can you or anyone else provide solutions as well?

Reply

jack AKA karthik July 4, 2017 at 12:16 AM


Where can i find a data set to play with the above queries
Reply

Anonymous July 11, 2017 at 2:25 AM


what is sql injection ? please explain with an example
Reply

Replies

Javin Paul July 11, 2017 at 5:50 AM


Hello Anonymous, SQL Injection is a vulnerability which comes by dynamically generating SQL
without sanitizing user input. This allows attacker to inject SQL code which can harm your system or
leak more data then expected. For example, if you are writing SQL query like

'SELECT * from Users where UserId = ' + userId

where userId is a String entered by user then if user enter something like "1 or 1=1' then it will return
all rows from User table.

Reply

Anonymous July 13, 2017 at 1:50 AM


nice..
Reply

Manoj Sharma October 3, 2017 at 2:10 AM


second highest salary

select min(Salary) from Employee where amounts in (select top 2 Salary from Employee order by Salary desc)
Reply

Anonymous October 3, 2017 at 2:38 PM


Good information for Beginers
Reply

satyajeet patil November 29, 2017 at 11:13 PM

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 22/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67
Hi all I just started to learn sql so can u tall me the detail explanation for the que-11,12
Reply

satyajeet patil November 29, 2017 at 11:14 PM


This comment has been removed by the author.
Reply

Unknown August 1, 2018 at 6:15 AM


Helpful.. Thank you
Reply

M Ackakzai November 20, 2018 at 8:24 AM


hi, where can i find/practice the questions in this table in? is there any online interactive sql table wher ei can
practice the joins, ideally with the same dataset? THANK YOU
Reply

Enter your comment...

Comment as: kartheekbeeram Sign out

Publish Preview Notify me

Turkey Neck Or Double Chin? Do This Daily And Watch What Happens
DermalMedix | Sponsored

These Walmart Shoppers Actually Left The House Like That


Noteabley | Sponsored

Everyone Watches The News For These Weather Girls


Ninja Journalist | Sponsored

When You Should Replace Your Toothbrush


quip | Sponsored

Man Who Called NASDAQ Crash Has Surprising New Prediction


Investing Outlook | Sponsored

17 Actors You Didn't Know Were Gay - No. 8 Will Shock Women
Journalistate | Sponsored

5 Free Database and SQL Query Courses for Programmers to Learn Online
Java67

Second Highest Salary in MySQL and SQL Server - LeetCode Solution


Java67

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 23/24
11/26/2018 10 Frequently asked SQL Query Interview Questions | Java67

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Copyright by Soma Sharma 2012 to 2018. Powered by Blogger.

http://www.java67.com/2013/04/10-frequently-asked-sql-query-interview-questions-answers-database.html 24/24

Vous aimerez peut-être aussi