wht is d/f b/w inner join and outer join ? d/f group by and order by having by ?

Answers were Sorted based on User's Feedback



wht is d/f b/w inner join and outer join ? d/f group by and order by having by ? ..

Answer / srinivasa yadav

INNER JOIN: ALL THE MATCHED ROWS FROM BOTH THE TABLES ARE
DISPLAYED IN THE RESULTANT TABLE.
OUTER JOIN: THERE ARE THREE TYPES OF OUTER JOIN
THEY ARE
1)LEFT OUTER JOIN
2)RIGHT OUTER JOIN
3)FULL OUTER JOIN

LEFT OUTER JOIN:- ALL THE MATCHED AND UNMATCHED ROWS FROM
BOTH TABLES FROM THE LEFT TABLE ARE DISPLAYED IN THE
RESULTANT TABLES
RIGHT OUTER JOIN:- ALL THE MATCHED AND UNMATCHED ROWS FROM
BOTH RIGHT TABLE ARE DISPLAYED IN THE RESULTANT TABLE.
FULL OUTER JOIN:- ALL THE MATCHED AND UNMATCHED ROWS FROM
BOTH THE TABLES ARE DISPLAYED IN THE RESULTANT TABLE.
GROUP BY CLAUSE:- IT IS USED ON GROUP OF DATA AND PROCESS AN
SQL QUERY.
ORDER BY:- IT IS USED TO SORT THE DATA IN ASCENDING OR
DESCENDING ORDER.
EX:- SELECT EMPID FROM EMP_TBL ORDER BY
DSC (OR) ORDER BY 1.
ORDER BY 1 i.e THE COLUMN NUMBER (EMPID)
HAVING BY:- IT IS USED FOR CONDITION CHECKING.

Is This Answer Correct ?    5 Yes 1 No

wht is d/f b/w inner join and outer join ? d/f group by and order by having by ? ..

Answer / lu

u have 2 table (a,b), u join together,u get colunms
matching it's called inner....
u have 2 tables (a,b), u select a colunm(b) doesn't exist
in a...it's called outer...
goup by using for a row...
having by using for column

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is dbrm in db2 database?

0 Answers  


What is DYNSLT keyword? How do you perform selection using DYNSLT

1 Answers  


How do you simulate the explain of an embedded sql statement in spufi/qmf?

0 Answers  


Where could you look if you had a question about whether a column has been defined as an index?

2 Answers  


Can you access the DB2 Directory table using SQL?

3 Answers  






How to find the number of rows in db2 tables?

0 Answers  


How many types of page locks can be held in db2?

0 Answers  


How to find the number of rows in a db2 table?

0 Answers  


What language is db2 written in?

0 Answers  


When is the results table for the query in a DECLARE CURSOR statement created?

5 Answers  


How to solved 818 error

4 Answers   Keane India Ltd, Wipro,


What is image copy?

1 Answers   Virtusa,


Categories